diff options
author | Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> | 2011-06-01 15:50:22 +0530 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 15:15:45 +0200 |
commit | 7a31e6b55b6001df0752dc08a197eca39b00b7cd (patch) | |
tree | 4b52d26770f3e5efa331cfad939507adb3fa5104 /include | |
parent | 6aaff4d85d42147f23a8a763abcc597149791556 (diff) |
u5500: leds: lm3530: calibrate ALS input voltage
This patch provides the support for auto
calibration of ALS Zone boundaries based
on min/max ALS input voltage.
ST-Ericsson Linux next: (Tested and reviewed 2011-06-09, ER336280)
ST-Ericsson ID: 343609
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I64f7dc5c72381fd5574b26d571ac4cfda7d86484
Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24332
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/led-lm3530.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/led-lm3530.h b/include/linux/led-lm3530.h index 58592fa67d2..8eb12357a11 100644 --- a/include/linux/led-lm3530.h +++ b/include/linux/led-lm3530.h @@ -84,6 +84,8 @@ enum lm3530_als_mode { * @brt_ramp_rise: rate of rise of led current * @als1_resistor_sel: internal resistance from ALS1 input to ground * @als2_resistor_sel: internal resistance from ALS2 input to ground + * @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-255) */ struct lm3530_platform_data { @@ -101,6 +103,9 @@ struct lm3530_platform_data { u8 als1_resistor_sel; u8 als2_resistor_sel; + u32 als_vmin; + u32 als_vmax; + u8 brt_val; }; |