summaryrefslogtreecommitdiff
path: root/include/linux/led-lm3530.h
diff options
context:
space:
mode:
authorOleksandr Kozaruk <oleksandr.kozaruk@globallogic.com>2015-07-31 14:58:14 -0700
committerEvan Wilson <evan@oliodevices.com>2015-08-07 12:54:31 -0700
commit17effd3107a92f2579d28ad8d0b39c44d401bf4b (patch)
tree215d551a6de3bc33090ccf76ddeb963c9ab8e4bb /include/linux/led-lm3530.h
parent5370cf916ba7717c002caa9e51785d07e6ef5270 (diff)
downloadolio-linux-3.10-17effd3107a92f2579d28ad8d0b39c44d401bf4b.tar.xz
olio-linux-3.10-17effd3107a92f2579d28ad8d0b39c44d401bf4b.zip
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 <evan@oliodevices.com>
Diffstat (limited to 'include/linux/led-lm3530.h')
-rw-r--r--include/linux/led-lm3530.h4
1 files changed, 4 insertions, 0 deletions
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;
};