Skip to content

backlight: lcd: Remove fbdev dependencies

Thomas Zimmermann dri-devel linux-fbdev linux-omap 2 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. v2 Latest28 patches 7 repliesApplied
  2. v128 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- use guard(mutex) (Daniel)
- fix typos in various commit descriptions (Daniel)

[1] https://patchwork.freedesktop.org/series/129782/
[2] https://patchwork.freedesktop.org/series/134718/

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/28backlight: lcd: Rearrange code in fb_notifier_callback()drivers/video/backlight/lcd.c+13 -120 replies
2/28backlight: lcd: Test against struct fb_info.lcd_devdrivers/video/backlight/lcd.c include/linux/fb.h+16 -00 replies
3/28backlight: lcd: Add LCD_POWER_ constants for power statesdrivers/video/backlight/lcd.c include/linux/lcd.h+26 -10 replies
4/28backlight: corgi_lcd: Use lcd power constantsdrivers/video/backlight/corgi_lcd.c+6 -60 replies
5/28backlight: hx8357: Use lcd power constantsdrivers/video/backlight/hx8357.c+1 -10 replies
6/28backlight: ili922x: Use lcd power constantsdrivers/video/backlight/ili922x.c+3 -40 replies
7/28backlight: ili9320: Use lcd power constantsdrivers/video/backlight/ili9320.c+7 -80 replies
8/28backlight: jornada720_lcd: Include <linux/io.h> for IOMEM() macrodrivers/video/backlight/jornada720_lcd.c+1 -00 replies
9/28backlight: jornada720_lcd: Use lcd power constantsdrivers/video/backlight/jornada720_lcd.c+4 -50 replies
10/28backlight: l4f00242t03: Use lcd power constantsdrivers/video/backlight/l4f00242t03.c+16 -160 replies
11/28backlight: lms283gf05: Use lcd power constantsdrivers/video/backlight/lms283gf05.c+1 -10 replies
12/28backlight: lms501kf03: Remove unnecessary include of <linux/backlight.h>drivers/video/backlight/lms501kf03.c+0 -10 replies
13/28backlight: lms501kf03: Use lcd power constantsdrivers/video/backlight/lms501kf03.c+11 -120 replies
14/28backlight: ltv350qv: Use lcd power constantsdrivers/video/backlight/ltv350qv.c+7 -80 replies
15/28backlight: otm3225a: Use lcd power constantsdrivers/video/backlight/otm3225a.c+1 -10 replies
16/28backlight: platform_lcd: Remove include statement for <linux/backlight.h>drivers/video/backlight/platform_lcd.c+0 -10 replies
17/28backlight: platform_lcd: Remove match_fb from struct plat_lcd_datadrivers/video/backlight/platform_lcd.c include/video/platform_lcd.h+0 -70 replies
18/28backlight: platform_lcd: Use lcd power constantsdrivers/video/backlight/platform_lcd.c+2 -20 replies
19/28backlight: tdo24m: Use lcd power constantsdrivers/video/backlight/tdo24m.c+7 -70 replies
20/28fbdev: clps711x-fb: Replace check_fb in favor of struct fb_info.lcd_devdrivers/video/fbdev/clps711x-fb.c+10 -133 replies
21/28fbdev: clps711x-fb: Use lcd power constantsdrivers/video/fbdev/clps711x-fb.c+3 -30 replies
22/28fbdev: imxfb: Replace check_fb in favor of struct fb_info.lcd_devdrivers/video/fbdev/imxfb.c+8 -180 replies
23/28fbdev: imxfb: Use lcd power constantsdrivers/video/fbdev/imxfb.c+3 -30 replies
24/28fbdev: omap: Use lcd power constantsdrivers/video/fbdev/omap/lcd_ams_delta.c+4 -40 replies
25/28HID: picoLCD: Replace check_fb in favor of struct fb_info.lcd_devdrivers/hid/hid-picolcd_fb.c drivers/hid/hid-picolcd_lcd.c+4 -60 replies
26/28backlight: lcd: Replace check_fb with controls_devicedrivers/video/backlight/lcd.c drivers/video/backlight/platform_lcd.c include/linux/lcd.h+18 -110 replies
27/28backlight: lcd: Remove struct fb_videomode from set_mode callbackdrivers/video/backlight/corgi_lcd.c drivers/video/backlight/lcd.c drivers/video/backlight/tdo24m.c +1 more+12 -90 replies
28/28backlight: lcd: Do not include <linux/fb.h> in lcd headerinclude/linux/lcd.h+0 -10 replies

Reviews trailers per patch

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

PatchDaniel ThompsonJiri Kosina
1/28R-b
2/28R-b
3/28R-b
4/28R-b
5/28R-b
6/28R-b
7/28R-b
8/28R-b
9/28R-b
10/28R-b
11/28R-b
12/28R-b
13/28R-b
14/28R-b
15/28R-b
16/28R-b
17/28R-b
18/28R-b
19/28R-b
20/28R-b
21/28R-b
22/28R-b
23/28R-b
24/28R-b
25/28R-b A-b
26/28R-b
27/28R-b
28/28R-b

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

Read the v2 thread

Cover letter [PATCH v2 00/28] backlight: lcd: Remove fbdev dependencies

This series removes most dependencies on fbdev from the lcd subsystem and its drivers.

Patches 1 to 3 rework the fbdev notifier, the fbdev's fb_info can now refer to a dedicated lcd device, and lcd defines constants for power states. These changes resemble similar changes to the backlight code.

Patches 4 to 19 update lcd drivers to the new interfaces and perform minor cleanups during the process. Patches 20 to 24 update fbdev drivers and patch 25 updates the picolcd driver from the hid subsystem.

Patches 25 to 28 finally clean up various lcd interfaces and files.

This patchset is part of a larger effort to implement the lcd code without depending on fbdev. Similar patches have been sent out for the backlight subsystem, such as in [1] and [2].

Hopefully this series can be merged at once through the lcd tree.

v2:
- use guard(mutex) (Daniel)
- fix typos in various commit descriptions (Daniel)

[1] https://patchwork.freedesktop.org/series/129782/
[2] https://patchwork.freedesktop.org/series/134718/

Thomas Zimmermann (28):
backlight: lcd: Rearrange code in fb_notifier_callback()
backlight: lcd: Test against struct fb_info.lcd_dev
backlight: lcd: Add LCD_POWER_ constants for power states
backlight: corgi_lcd: Use lcd power constants
backlight: hx8357: Use lcd power constants
backlight: ili922x: Use lcd power constants
backlight: ili9320: Use lcd power constants
backlight: jornada720_lcd: Include <linux/io.h> for IOMEM() macro
backlight: jornada720_lcd: Use lcd power constants
backlight: l4f00242t03: Use lcd power constants
backlight: lms283gf05: Use lcd power constants
backlight: lms501kf03: Remove unnecessary include of
<linux/backlight.h>
backlight: lms501kf03: Use lcd power constants
backlight: ltv350qv: Use lcd power constants
backlight: otm3225a: Use lcd power constants
backlight: platform_lcd: Remove include statement for
<linux/backlight.h>
backlight: platform_lcd: Remove match_fb from struct plat_lcd_data
backlight: platform_lcd: Use lcd power constants
backlight: tdo24m: Use lcd power constants
fbdev: clps711x-fb: Replace check_fb in favor of struct
fb_info.lcd_dev
fbdev: clps711x-fb: Use lcd power constants
fbdev: imxfb: Replace check_fb in favor of struct fb_info.lcd_dev
fbdev: imxfb: Use lcd power constants
fbdev: omap: Use lcd power constants
HID: picoLCD: Replace check_fb in favor of struct fb_info.lcd_dev
backlight: lcd: Replace check_fb with controls_device
backlight: lcd: Remove struct fb_videomode from set_mode callback
backlight: lcd: Do not include <linux/fb.h> in lcd header

 drivers/hid/hid-picolcd_fb.c             |  4 ++
 drivers/hid/hid-picolcd_lcd.c            |  6 ---
 drivers/video/backlight/corgi_lcd.c      | 17 ++++----
 drivers/video/backlight/hx8357.c         |  2 +-
 drivers/video/backlight/ili922x.c        |  7 ++--
 drivers/video/backlight/ili9320.c        | 15 ++++---
 drivers/video/backlight/jornada720_lcd.c | 10 ++---
 drivers/video/backlight/l4f00242t03.c    | 32 +++++++--------
 drivers/video/backlight/lcd.c            | 50 ++++++++++++++++++------
 drivers/video/backlight/lms283gf05.c     |  2 +-
 drivers/video/backlight/lms501kf03.c     | 24 ++++++------
 drivers/video/backlight/ltv350qv.c       | 15 ++++---
 drivers/video/backlight/otm3225a.c       |  2 +-
 drivers/video/backlight/platform_lcd.c   | 20 ++++------
 drivers/video/backlight/tdo24m.c         | 19 +++++----
 drivers/video/fbdev/clps711x-fb.c        | 29 ++++++--------
 drivers/video/fbdev/imxfb.c              | 32 ++++++---------
 drivers/video/fbdev/omap/lcd_ams_delta.c |  8 ++--
 include/linux/fb.h                       | 13 ++++++
 include/linux/lcd.h                      | 29 ++++++++++----
 include/video/platform_lcd.h             |  3 --
 21 files changed, 181 insertions(+), 158 deletions(-)
Signature · 1 line
2.46.0