[PATCH] backlight: corgi: Convert to use GPIO descriptors
Linus Walleij
linus.walleij at linaro.org
Tue Dec 17 15:19:13 UTC 2019
On Mon, Dec 16, 2019 at 5:27 PM Lee Jones <lee.jones at linaro.org> wrote:
> On Tue, 03 Dec 2019, Linus Walleij wrote:
>
> > 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.
> >
> > Cc: Andrea Adami <andrea.adami at gmail.com>
> > Cc: Robert Jarzmik <robert.jarzmik at free.fr>
> > Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
> > ---
> > arch/arm/mach-pxa/corgi.c | 12 ++++-
> > arch/arm/mach-pxa/spitz.c | 34 +++++++++++----
>
> Does this have an Arm Ack yet?
Yes Robert Jarzmik is the maintainer of arch/arm/mach-pxa,
or do you mean I should ask for the ARM SoC maintainers'
ACK explicitly (then I'd just resend, NP).
> > drivers/video/backlight/corgi_lcd.c | 68 ++++++++---------------------
> > include/linux/spi/corgi_lcd.h | 3 --
>
> What about SPI?
That include file should technically be in the backlight
include path or platform_data (yeah someone should
fix...) but let's ask Mark explicitly if this is OK.
Mark: the hunk hitting the include/linux/spi/corgi_lcd.h
file looks like this:
@@ -11,9 +11,6 @@ struct corgi_lcd_platform_data {
int default_intensity;
int limit_mask;
- int gpio_backlight_on; /* -1 if n/a */
- int gpio_backlight_cont; /* -1 if n/a */
-
void (*notify)(int intensity);
void (*kick_battery)(void);
};
OK with you? If you want I can resend the whole patch
as well so you can have a look.
Yours,
Linus Walleij
More information about the dri-devel
mailing list