Message ID | 20240624152033.25016-1-tzimmermann@suse.de |
---|---|
Headers | show |
Series | backlight: Introduce power-state constants | expand |
On Mon, Jun 24, 2024 at 05:19:55PM +0200, Thomas Zimmermann wrote: > The backlight code currently uses fbdev's FB_BLANK_ constants to > represent power states UNBLANK and POWERDOWN. Introduce dedicated > backlight constants to remove this dependency on fbdev. > > Patch 1 introduces BACKLIGHT_POWER_ON and BACKLIGHT_POWER_OFF, which > replace constants from fbdev. There's also BACKLIGHT_POWER_REDUCED, > which is required by a few drivers that appear to use incorrect or > uncommon blanking semantics. > > The rest of the patchset converts backlight drivers. The new > constants' values are identical to the old ones, so the driver > conversion can be done one-by-one. > > There are many more backlight drivers in other subsystems. These > can later be converted when the new constants have been merged. > Once merged, several include statements for <linux/fb.h> can be > removed (specifically under drivers/platform/x86/). > > This patchset is part of a larger effort to implement the backlight > code without depending on fbdev and ultimatively remove fbdev > dependencies from the kernel. > > v2: > - rename BL_CORE_ power constants to BACKLIGHT_POWER_ (Sam) > - fix documentation > > Thomas Zimmermann (17): > backlight: Add BACKLIGHT_POWER_ constants for power states > backlight: aat2870-backlight: Use blacklight power constants > backlight: ams369fb06: Use backlight power constants > backlight: corgi-lcd: Use backlight power constants > backlight: gpio-backlight: Use backlight power constants > backlight: ipaq-micro-backlight: Use backlight power constants > backlight: journada_bl: Use backlight power constants > backlight: kb3886-bl: Use backlight power constants > backlight: ktd253-backlight: Use backlight power constants > backlight: led-backlight: Use backlight power constants > backlight: lm3533-backlight: Use backlight power constants > backlight: mp3309c: Use backlight power constants > backlight: pandora-backlight: Use backlight power constants > backlight: pcf50633-backlight: Use backlight power constants > backlight: pwm-backlight: Use backlight power constants > backlight: rave-sp-backlight: Use backlight power constants > backlight: sky81452-backlight: Use backlight power constants Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Daniel.
On Mon, 24 Jun 2024 17:19:55 +0200, Thomas Zimmermann wrote: > The backlight code currently uses fbdev's FB_BLANK_ constants to > represent power states UNBLANK and POWERDOWN. Introduce dedicated > backlight constants to remove this dependency on fbdev. > > Patch 1 introduces BACKLIGHT_POWER_ON and BACKLIGHT_POWER_OFF, which > replace constants from fbdev. There's also BACKLIGHT_POWER_REDUCED, > which is required by a few drivers that appear to use incorrect or > uncommon blanking semantics. > > [...] Applied, thanks! [01/17] backlight: Add BACKLIGHT_POWER_ constants for power states commit: a1cacb8a8e70c38ec0c78910c668abda99fcb780 [02/17] backlight: aat2870-backlight: Use blacklight power constants commit: 26dcf62333f1c1ec33a469339a287ab8eecfb06e [03/17] backlight: ams369fb06: Use backlight power constants commit: 1adf98242e0ec33f15c4f7a1e86ad76abf209665 [04/17] backlight: corgi-lcd: Use backlight power constants commit: e263c051910190feba884179aef15e548273a7aa [05/17] backlight: gpio-backlight: Use backlight power constants commit: ef51815c5f970b228a775ceb3bb06ce46fe9ff86 [06/17] backlight: ipaq-micro-backlight: Use backlight power constants commit: b6675c59473a26dec33281e4e872cf09f6321523 [07/17] backlight: journada_bl: Use backlight power constants commit: 6910d19bb861db0721a171f4e351c290a40f1d19 [08/17] backlight: kb3886-bl: Use backlight power constants commit: cebc25971f7f988dfd4d6c7269deea4c1ca5898e [09/17] backlight: ktd253-backlight: Use backlight power constants commit: def5831f09db8937218be50fc652d20c0a68e417 [10/17] backlight: led-backlight: Use backlight power constants commit: 814d3e820039348f1467ada9a8a812c0b80733de [11/17] backlight: lm3533-backlight: Use backlight power constants commit: 761c83910b3d10e731b03438b883d271c295a9a5 [12/17] backlight: mp3309c: Use backlight power constants commit: c2d9c4934bf4e12b531312bbf02a8543f6a23aae [13/17] backlight: pandora-backlight: Use backlight power constants commit: d4db2f193490415386ee13f714a0940943cbb149 [14/17] backlight: pcf50633-backlight: Use backlight power constants commit: eca6b3ddfc554a9a51795cf035ccd60f2d842074 [15/17] backlight: pwm-backlight: Use backlight power constants commit: eb1c4b6ddde6867498ead8d4b92d6abb5f736a7d [16/17] backlight: rave-sp-backlight: Use backlight power constants commit: 22f8a85ef0c563ba7e53d9ece39c1f2dc99f53ed [17/17] backlight: sky81452-backlight: Use backlight power constants commit: 1df5aa3754cac2045998ca505edb84d994786c67 -- Lee Jones [李琼斯]