From 17effd3107a92f2579d28ad8d0b39c44d401bf4b Mon Sep 17 00:00:00 2001 From: Oleksandr Kozaruk Date: Fri, 31 Jul 2015 14:58:14 -0700 Subject: olio: LM3530: backlight: Add simple enable/disable mode New mode is similar to 'manual' but it allows to enable/disable backlight using PWM pin. Change-Id: I205cd716bfa56573e5efe9b78918f8742bd7c0f3 Signed-off-by: Evan Wilson --- include/linux/led-lm3530.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/linux/led-lm3530.h') diff --git a/include/linux/led-lm3530.h b/include/linux/led-lm3530.h index 4b133479d6e..963ecb68002 100644 --- a/include/linux/led-lm3530.h +++ b/include/linux/led-lm3530.h @@ -60,6 +60,7 @@ enum lm3530_mode { LM3530_BL_MODE_MANUAL = 0, /* "man" */ + LM3530_BL_MODE_SIMPLE_MANUAL, /* "man" simple enable/disable */ LM3530_BL_MODE_ALS, /* "als" */ LM3530_BL_MODE_PWM, /* "pwm" */ }; @@ -93,6 +94,7 @@ struct lm3530_pwm_data { * @als_vmin: als input voltage calibrated for max brightness in mV * @als_vmax: als input voltage calibrated for min brightness in mV * @brt_val: brightness value (0-127) + * @pwm_gpio: PWM control pin * @pwm_data: PWM control functions (only valid when the mode is PWM) */ struct lm3530_platform_data { @@ -115,6 +117,8 @@ struct lm3530_platform_data { u8 brt_val; + int pwm_gpio; + struct lm3530_pwm_data pwm_data; }; -- cgit v1.2.3-70-g09d2