[PATCH] backlight: bd6107: Convert to use GPIO descriptor

Linus Walleij linus.walleij at linaro.org
Mon Dec 2 11:06:40 UTC 2019


On Mon, Dec 2, 2019 at 11:42 AM Laurent Pinchart
<laurent.pinchart at ideasonboard.com> wrote:
> On Mon, Dec 02, 2019 at 11:30:28AM +0100, Linus Walleij wrote:
> > The Rohm BD6107 driver can pass a fixed GPIO line using the old
> > GPIO API using platform data. As there are no in-tree users of this
> > platform data since 2013, we can convert this to use a GPIO descriptor
> > and require any out-of-tree consumers to pass the GPIO using
> > a machine descriptor table instead.
>
> Or better, converting to DT :-)

Yeah right now my objective is just to get the old GPIO API
out of the kernel, so I'm focusing on that.

> > Cc: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> > Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
>
> How about going one step further and removing platform data support in a
> second patch ?

That seems to mandate also adding a DT binding and probe path
for DT otherwise there is no way to probe the driver at all :P, and
I would really need to have the hardware to test with
for that.

Yours,
Linus Walleij


More information about the dri-devel mailing list