backlight: gpio_backlight: Convert to use GPIO descriptor
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 30 May 2017 11:48:21 +0000 (13:48 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 7 Aug 2017 16:04:32 +0000 (17:04 +0100)
commitde7389003ab77fc63296b2adee4cd9c48dc41d5a
tree0c2235b92ed7abbc373994ab0a94bc0f8a0b3f73
parent62cdfe658535c39003d4d1b9d7f9b5a23a0db6bf
backlight: gpio_backlight: Convert to use GPIO descriptor

This driver is predominantly used by device tree systems, all
of which can deal with modern GPIO descriptors. The legacy
GPIO API is only used by one SH board so make the GPIO
descriptor the default way to deal with it.

As an intended side effect we do not need to look around in
the device tree for the inversion flag since the GPIO
descriptors will intrinsically deal with this.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/gpio_backlight.c