mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
simplefb: print some info about the registered fb
This is similar to the output printed by efifb. Signed-off-by: Tom Gundersen <teg@jklm.no> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Cc: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
6c666b4188
commit
9f192a9228
1 changed files with 8 additions and 0 deletions
|
|
@ -220,6 +220,14 @@ static int simplefb_probe(struct platform_device *pdev)
|
|||
}
|
||||
info->pseudo_palette = (void *)(info + 1);
|
||||
|
||||
dev_info(&pdev->dev, "framebuffer at 0x%lx, 0x%x bytes, mapped to 0x%p\n",
|
||||
info->fix.smem_start, info->fix.smem_len,
|
||||
info->screen_base);
|
||||
dev_info(&pdev->dev, "format=%s, mode=%dx%dx%d, linelength=%d\n",
|
||||
params.format->name,
|
||||
info->var.xres, info->var.yres,
|
||||
info->var.bits_per_pixel, info->fix.line_length);
|
||||
|
||||
ret = register_framebuffer(info);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "Unable to register simplefb: %d\n", ret);
|
||||
|
|
|
|||
Loading…
Reference in a new issue