]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Update fbdev fb_fix_screeninfo
authorJames Simmons <jsimmons@infradead.org>
Thu, 23 Dec 2010 16:40:37 +0000 (16:40 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 7 Jan 2011 03:44:40 +0000 (13:44 +1000)
commit2e11ee38fdeba0f35bb64b0e40ad964d9adf7819
treeffc5e9335283001c072aa0377ba9fd92ac3b1919
parent54467071a822fff45456f21a264315165f0c7767
drm: Update fbdev fb_fix_screeninfo

If you change the color depth via fbset or some other framebuffer aware
userland application struct fb_fix_screeninfo is not updated to this new
information. This patch fixes this issue. Also the function is changed to
just pass in struct drm_framebuffer so in the future we could use more
fields. I'm hoping some day fix->smem* could be set here :-)

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/i915/intel_fb.c
drivers/gpu/drm/nouveau/nouveau_fbcon.c
drivers/gpu/drm/radeon/radeon_fb.c
include/drm/drm_fb_helper.h