]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: Rework backlight/fb interaction simplifying, lots
authorRichard Purdie <rpurdie@rpsys.net>
Sat, 10 Feb 2007 14:10:33 +0000 (14:10 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Tue, 20 Feb 2007 08:38:46 +0000 (08:38 +0000)
commit30844af4155c4be6ff193c9a3774e6ee4765ea55
tree21cdbb8c988eed585437bb502ca15c2998ea7fbc
parent7afa7b2a3550c1eec35186cdef6d3fcaf79327af
backlight: Rework backlight/fb interaction simplifying, lots

fb_info->bl_mutex is badly thought out and the backlight class doesn't
need it if the framebuffer/backlight register/unregister order is
consistent, particularly after the backlight locking fixes.

Fix the drivers to use the order:

backlight_device_register()
register_framebuffer()
unregister_framebuffer()
backlight_device_unregister()

and turn bl_mutex into a lock for the bl_curve data only.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
drivers/video/aty/aty128fb.c
drivers/video/aty/atyfb_base.c
drivers/video/aty/radeon_backlight.c
drivers/video/aty/radeon_base.c
drivers/video/fbsysfs.c
drivers/video/nvidia/nv_backlight.c
drivers/video/nvidia/nvidia.c
drivers/video/riva/fbdev.c
include/linux/fb.h