Re: [PATCH v2] backlight: corgi: Convert to use GPIO descriptors

2020-02-10 Thread Daniel Thompson
On Mon, Feb 10, 2020 at 11:15:04AM +0100, 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 sem

[PATCH v2] backlight: corgi: Convert to use GPIO descriptors

2020-02-10 Thread Linus Walleij
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 d