]> www.infradead.org Git - users/jedix/linux-maple.git/commit
backlight: Replace fb events with a dedicated function call
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 21 Mar 2025 09:53:59 +0000 (10:53 +0100)
committerLee Jones <lee@kernel.org>
Thu, 10 Apr 2025 09:39:03 +0000 (10:39 +0100)
commitb01beb2f1f6bcda17634a5b529865ffc5a9b795f
tree451b735697c8a866e128805729ce2b2efc7f7963
parent4bfb77f3381627640e97e0e423c93a2ea93e7de7
backlight: Replace fb events with a dedicated function call

Remove support for fb events from backlight subsystem. Provide the
helper backlight_notify_blank_all() instead. Also export the existing
helper backlight_notify_blank() to update a single backlight device.

In fbdev, call either helper to inform the backlight subsystem of
changes to a display's blank state. If the framebuffer device has a
specific backlight, only update this one; otherwise update all.

v4:
- protect blacklight declarations with IS_REACHABLE() (kernel test robot)
v3:
- declare empty fb_bl_notify_blank() as static inline (kernel test robot)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Simona Vetter <simona.vetter@ffwll.ch>
Reviewed-by: "Daniel Thompson (RISCstar)" <danielt@kernel.org>
Link: https://lore.kernel.org/r/20250321095517.313713-7-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/backlight.c
drivers/video/fbdev/core/fb_backlight.c
drivers/video/fbdev/core/fbmem.c
include/linux/backlight.h
include/linux/fb.h