drm/fb-helper: pass physical dimensions to fbdev
authorDavid Lechner <david@lechnology.com>
Fri, 4 Aug 2017 16:25:24 +0000 (11:25 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 7 Aug 2017 15:01:15 +0000 (17:01 +0200)
commit991a3999908f460c3ae1ee4a9e20fc2013bbb85b
treeca234cfd1b72047cb61d21a28967ae9476409a0a
parentadb8a5a5eb9f16997f11ecacf25a647134011dd7
drm/fb-helper: pass physical dimensions to fbdev

The fbdev subsystem has a place for physical dimensions (width and height
in mm) that is readable by userspace. Since DRM also knows these
dimensions, pass this information to the fbdev device.

This has to be done in drm_setup_crtcs_fb() instead of drm_setup_crtcs()
because fb_helper->fbdev may be NULL in drm_setup_crtcs().

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1501863924-7154-1-git-send-email-david@lechnology.com
drivers/gpu/drm/drm_fb_helper.c