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

2020-02-26 Thread Lee Jones
On Thu, 20 Feb 2020, 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

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

2020-02-20 Thread Daniel Thompson
On Thu, Feb 20, 2020 at 10:00:32AM +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 v3] backlight: corgi: Convert to use GPIO descriptors

2020-02-20 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