diff options
| author | Thomas Zimmermann <[email protected]> | 2025-03-21 09:54:03 +0000 |
|---|---|---|
| committer | Lee Jones <[email protected]> | 2025-04-10 09:39:13 +0000 |
| commit | dc2139c0aa3283e5749109641af1878ed7bf7371 (patch) | |
| tree | aaa0aefc0bb2bee94c34bde0ba187cef1e6c3da2 /rust/helpers/xarray.c | |
| parent | leds: backlight trigger: Move blank-state handling into helper (diff) | |
| download | kernel-dc2139c0aa3283e5749109641af1878ed7bf7371.tar.gz kernel-dc2139c0aa3283e5749109641af1878ed7bf7371.zip | |
leds: backlight trigger: Replace fb events with a dedicated function call
Remove support for fb events from the led backlight trigger. Provide
the helper ledtrig_backlight_blank() instead. Call it from fbdev to
inform the trigger of changes to a display's blank state.
Fbdev maintains a list of all installed notifiers. Instead of the fbdev
notifiers, maintain an internal list of led backlight triggers.
v3:
- export ledtrig_backlight_blank()
v2:
- maintain global list of led backlight triggers (Lee)
- avoid IS_REACHABLE() in source file (Lee)
- notify on changes to blank state instead of display state
- use lock guards
- initialize led list and list mutex
Signed-off-by: Thomas Zimmermann <[email protected]>
Acked-by: Simona Vetter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions
