[PATCH] backlight: l4f00242t03: Convert to GPIO descriptors

Lee Jones lee.jones at linaro.org
Wed Apr 29 07:52:36 UTC 2020


On Wed, 15 Apr 2020, Linus Walleij wrote:

> This converts the l4f00242t03 backlight driver to use GPIO
> descriptors and switches the two Freescale i.MX boards over
> to passing descriptors instead of global GPIO numbers.
> 
> We use the typical names "enable" and "reset" as found in
> the device tree bindings for panel GPIOs.
> 
> This saves a lot of code in the driver and makes it possible
> to get rid of the platform data header altogether.
> 
> Cc: Sascha Hauer <s.hauer at pengutronix.de>
> Cc: Anson Huang <Anson.Huang at nxp.com>
> Cc: Shawn Guo <shawnguo at kernel.org>
> Cc: Pengutronix Kernel Team <kernel at pengutronix.de>
> Cc: Fabio Estevam <festevam at gmail.com>
> Cc: NXP Linux Team <linux-imx at nxp.com>
> Cc: Alberto Panizzo <maramaopercheseimorto at gmail.com>
> Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
> ---
> i.MX folks: please test if you can or at least ACK so Lee
> knows if this is OK for you.
> ---
>  arch/arm/mach-imx/mach-mx27_3ds.c     | 21 +++++++++----
>  arch/arm/mach-imx/mach-mx31_3ds.c     | 24 +++++++++++---
>  drivers/video/backlight/l4f00242t03.c | 45 +++++++++++----------------
>  include/linux/spi/l4f00242t03.h       | 17 ----------
>  4 files changed, 52 insertions(+), 55 deletions(-)
>  delete mode 100644 include/linux/spi/l4f00242t03.h

Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog


More information about the dri-devel mailing list