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

Remove support for fb events from the lcd subsystem. Provide the
helper lcd_notify_blank_all() instead. In fbdev, call
lcd_notify_blank_all() to inform the lcd subsystem of changes
to a display's blank state.

Fbdev maintains a list of all installed notifiers. Instead of fbdev
notifiers, maintain an internal list of lcd devices.

v3:
- export lcd_notify_mode_change_all() (kernel test robot)
v2:
- maintain global list of lcd devices
- avoid IS_REACHABLE() in source file
- use lock guards
- initialize lcd list and list mutex

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-9-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/lcd.c
drivers/video/fbdev/core/fbmem.c
include/linux/lcd.h