pwm-backlight: switch to gpiod interface
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 27 Feb 2014 05:53:34 +0000 (14:53 +0900)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 7 May 2014 08:15:31 +0000 (10:15 +0200)
commit257462dbf3ed233de0dc2e489dcc58579535b33f
treecd119efc19caf1d3ebc4cbc76693480e3cda7745
parenta4406f165faa222a0d2c5e660473bb6822850a55
pwm-backlight: switch to gpiod interface

Switch to the new gpiod interface, which allows to handle GPIO
properties such as active low transparently and removes a whole bunch of
code.

There are still a couple of users of this driver that rely on passing
the enable GPIO number through platform data, so a fallback mechanism
using a GPIO number is still available to avoid breaking them. It will
be removed once current users have switched to the GPIO lookup tables
provided by the gpiod interface.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/video/backlight/pwm_bl.c
include/linux/pwm_backlight.h