diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2025-03-21 10:53:57 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2025-04-10 10:39:00 +0100 |
commit | 726491f2038ec71122d45700f3abf36fdb277aaa (patch) | |
tree | 9647943a6af449fcfdf7cbaa7d869873210cc38e /scripts/lib/kdoc/kdoc_files.py | |
parent | dfb4bf1ac40162ff5ea3715a10f6af2dcf3030c5 (diff) |
backlight: Implement fbdev tracking with blank state from event
Look at the blank state provided by FB_EVENT_BLANK to determine
whether to enable or disable a backlight. Remove the tracking fields
from struct backlight_device.
Tracking requires three variables, fb_on, prev_fb_on and the
backlight's use_count. If fb_on is true, the display has been
unblanked. The backlight needs to be enabled if the display was
blanked before (i.e., prev_fb_on is false) or if use_count is still
at 0. If fb_on is false, the display has been blanked. In this case,
the backlight has to be disabled was unblanked before and the
backlight's use_count is greater than 0.
This change removes fbdev state tracking from blacklight. All the
backlight requires it its own use counter and information about
changes to the display. Removing fbdev internals makes backlight
drivers easier to integrate into other display drivers, such as DRM.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: "Daniel Thompson (RISCstar)" <danielt@kernel.org>
Acked-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://lore.kernel.org/r/20250321095517.313713-5-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions