Skip to content

backlight, lcd, led: Remove fbdev dependencies

Thomas Zimmermann dri-devel linux-fbdev linux-leds 4 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 8 repliesApplied
  2. v311 patches 11 repliesSuperseded
  3. v211 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC13 patches5 repliesSuperseded

Changes in v4 from the cover letter

- protect backlight declarations with IS_REACHABLE() v3:
- export several symbols
- static-inline declare empty placeholders v2:
- avoid IS_REACHABLE() in source file (Lee)
- simplify several interfaces and helpers
- use lock guards
- initialize global lists and mutices

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/11fbdev: Rework fb_blank()drivers/video/fbdev/core/fbmem.c+10 -80 replies
2/11fbdev: Track display blanking statedrivers/video/fbdev/core/fb_info.c drivers/video/fbdev/core/fbmem.c drivers/video/fbdev/core/fbsysfs.c +1 more+23 -50 replies
3/11fbdev: Send old blank state in FB_EVENT_BLANKdrivers/video/fbdev/core/fbmem.c+4 -10 replies
4/11backlight: Implement fbdev tracking with blank state from eventdrivers/video/backlight/backlight.c include/linux/backlight.h+8 -160 replies
5/11backlight: Move blank-state handling into helperdrivers/video/backlight/backlight.c+27 -190 replies
6/11backlight: Replace fb events with a dedicated function calldrivers/video/backlight/backlight.c drivers/video/fbdev/core/fb_backlight.c drivers/video/fbdev/core/fbmem.c +2 more+46 -791 reply
7/11backlight: lcd: Move event handling into helpersdrivers/video/backlight/lcd.c+28 -100 replies
8/11backlight: lcd: Replace fb events with a dedicated function calldrivers/video/backlight/lcd.c drivers/video/fbdev/core/fbmem.c include/linux/lcd.h+79 -794 replies
9/11leds: backlight trigger: Move blank-state handling into helperdrivers/leds/trigger/ledtrig-backlight.c+18 -120 replies
10/11leds: backlight trigger: Replace fb events with a dedicated function calldrivers/leds/trigger/ledtrig-backlight.c drivers/video/fbdev/core/fbmem.c include/linux/leds.h+33 -340 replies
11/11fbdev: Remove constants of unused eventsinclude/linux/fb.h+0 -60 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by.

PatchSimona VetterDaniel Thompson (RISCstar)
1/11A-b
2/11A-b
3/11A-b
4/11A-b R-b
5/11A-b R-b
6/11A-b R-b
7/11A-b R-b
8/11A-b R-b
9/11A-b
10/11A-b
11/11A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 00/11] backlight, lcd, led: Remove fbdev dependencies

This series removes the remaining dependencies on fbdev from the backlight, lcd and led subsystems. Each depends on fbdev events to track display state. Make fbdev inform each subsystem via a dedicated interface instead.

Patches 1 to 3 make fbdev track blank state for each display, so that backlight code doesn't have to.

Patches 4 to 6 remove fbdev event handling from backlight code. Patches 7 and 8 remove fbdev event handling from lcd code and patches 9 and 10 do the same for led's backlight trigger.

The final patch removes the event constants from fbdev.

With the series applied, the three subsystems do no longer depend on fbdev. It's also a clean up for fbdev. Fbdev used to send out a large number of events. That mechanism has been deprecated for some time and converted call to dedicated functions instead.

Testing is very welcome, as I don't have the hardware to test this series.

v4:
- protect backlight declarations with IS_REACHABLE() v3:
- export several symbols
- static-inline declare empty placeholders v2:
- avoid IS_REACHABLE() in source file (Lee)
- simplify several interfaces and helpers
- use lock guards
- initialize global lists and mutices

Thomas Zimmermann (11):
fbdev: Rework fb_blank()
fbdev: Track display blanking state
fbdev: Send old blank state in FB_EVENT_BLANK
backlight: Implement fbdev tracking with blank state from event
backlight: Move blank-state handling into helper
backlight: Replace fb events with a dedicated function call
backlight: lcd: Move event handling into helpers
backlight: lcd: Replace fb events with a dedicated function call
leds: backlight trigger: Move blank-state handling into helper
leds: backlight trigger: Replace fb events with a dedicated function
call
fbdev: Remove constants of unused events

 drivers/leds/trigger/ledtrig-backlight.c |  48 +++++-----
 drivers/video/backlight/backlight.c      |  93 +++++--------------
 drivers/video/backlight/lcd.c            | 108 +++++++++--------------
 drivers/video/fbdev/core/fb_backlight.c  |  12 +++
 drivers/video/fbdev/core/fb_info.c       |   1 +
 drivers/video/fbdev/core/fbmem.c         |  82 ++++++++++++++---
 drivers/video/fbdev/core/fbsysfs.c       |   8 +-
 include/linux/backlight.h                |  32 +++----
 include/linux/fb.h                       |  12 +--
 include/linux/lcd.h                      |  21 ++++-
 include/linux/leds.h                     |   6 ++
 11 files changed, 215 insertions(+), 208 deletions(-)
Signature · 1 line
2.48.1