Skip to content
Commit 37ce69a5 authored by Richard Purdie's avatar Richard Purdie
Browse files

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: default avatarRichard Purdie <rpurdie@rpsys.net>
parent b5c6916b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment