diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2020-06-26 23:37:41 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-07-01 12:39:32 +0300 |
commit | e1915eec54a6b4902664eaf6fb7a20de5624c4dd (patch) | |
tree | 7dde8901c4c9e63d2d4f4e4d13477a866d1d7006 /include/linux/platform_data | |
parent | a9b9b2af40c717adbc4981acd29c53b92be3a99a (diff) | |
download | linux-e1915eec54a6b4902664eaf6fb7a20de5624c4dd.tar.xz |
backlight: sky81452: Convert to GPIO descriptors
The SKY81452 backlight driver just obtains a GPIO (named "gpios"
in the device tree) drives it high and leaves it high until the
driver is removed.
Switch to use GPIO descriptors for this, simple and
straight-forward.
Cc: Gyungoh Yoo <jack.yoo@skyworksinc.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/sky81452-backlight.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/platform_data/sky81452-backlight.h b/include/linux/platform_data/sky81452-backlight.h index 02653d92d84f..d6f46670d923 100644 --- a/include/linux/platform_data/sky81452-backlight.h +++ b/include/linux/platform_data/sky81452-backlight.h @@ -9,11 +9,13 @@ #ifndef _SKY81452_BACKLIGHT_H #define _SKY81452_BACKLIGHT_H +#include <linux/gpio/consumer.h> + /** * struct sky81452_platform_data * @name: backlight driver name. If it is not defined, default name is lcd-backlight. - * @gpio_enable:GPIO number which control EN pin + * @gpios_enable:GPIO descriptor which control EN pin * @enable: Enable mask for current sink channel 1, 2, 3, 4, 5 and 6. * @ignore_pwm: true if DPWMI should be ignored. * @dpwm_mode: true is DPWM dimming mode, otherwise Analog dimming mode. @@ -23,7 +25,7 @@ */ struct sky81452_bl_platform_data { const char *name; - int gpio_enable; + struct gpio_desc *gpiod_enable; unsigned int enable; bool ignore_pwm; bool dpwm_mode; |