backlight: corgi: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 20 Feb 2020 09:00:32 +0000 (10:00 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 25 Mar 2020 09:30:46 +0000 (09:30 +0000)
commitee0c8e494cc3c135350cd5c4752e82af3feae1ab
tree94b35d2fb82825037254b1505aa9625ff3bd8b00
parent2644f912b41012c1ce5ff9be99efeec721491b86
backlight: corgi: Convert to use GPIO descriptors

The code in the Corgi backlight driver can be considerably
simplified by moving to GPIO descriptors and lookup tables
from the board files instead of passing GPIO numbers using
the old API.

Make sure to encode inversion semantics for the Akita and
Spitz platforms inside the GPIO lookup table and drop the
custom inversion semantics from the driver.

All in-tree users are converted in this patch.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
arch/arm/mach-pxa/corgi.c
arch/arm/mach-pxa/spitz.c
drivers/video/backlight/corgi_lcd.c
include/linux/spi/corgi_lcd.h