diff options
author | Alexandre Courbot <acourbot@nvidia.com> | 2014-02-27 14:53:34 +0900 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-05-07 10:15:31 +0200 |
commit | 257462dbf3ed233de0dc2e489dcc58579535b33f (patch) | |
tree | cd119efc19caf1d3ebc4cbc76693480e3cda7745 /include | |
parent | a4406f165faa222a0d2c5e660473bb6822850a55 (diff) | |
download | blackbird-op-linux-257462dbf3ed233de0dc2e489dcc58579535b33f.tar.gz blackbird-op-linux-257462dbf3ed233de0dc2e489dcc58579535b33f.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pwm_backlight.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/pwm_backlight.h b/include/linux/pwm_backlight.h index 2de2e275b2cb..efdd9227a49c 100644 --- a/include/linux/pwm_backlight.h +++ b/include/linux/pwm_backlight.h @@ -6,9 +6,6 @@ #include <linux/backlight.h> -/* TODO: convert to gpiod_*() API once it has been merged */ -#define PWM_BACKLIGHT_GPIO_ACTIVE_LOW (1 << 0) - struct platform_pwm_backlight_data { int pwm_id; unsigned int max_brightness; @@ -16,8 +13,8 @@ struct platform_pwm_backlight_data { unsigned int lth_brightness; unsigned int pwm_period_ns; unsigned int *levels; + /* TODO remove once all users are switched to gpiod_* API */ int enable_gpio; - unsigned long enable_gpio_flags; int (*init)(struct device *dev); int (*notify)(struct device *dev, int brightness); void (*notify_after)(struct device *dev, int brightness); |