Merge branch 'sh/cpufreq' into sh-latest
[deliverable/linux.git] / include / linux / led-lm3530.h
index 8eb12357a1105d7818b1cf40434297f03e007fbb..eeae6e742471f0bbf796439ba21668e511bc4df5 100644 (file)
@@ -72,6 +72,12 @@ enum lm3530_als_mode {
        LM3530_INPUT_CEIL,      /* Max of ALS1 and ALS2 */
 };
 
+/* PWM Platform Specific Data */
+struct lm3530_pwm_data {
+       void (*pwm_set_intensity) (int brightness, int max_brightness);
+       int (*pwm_get_intensity) (int max_brightness);
+};
+
 /**
  * struct lm3530_platform_data
  * @mode: mode of operation i.e. Manual, ALS or PWM
@@ -87,6 +93,7 @@ enum lm3530_als_mode {
  * @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)
+ * @pwm_data: PWM control functions (only valid when the mode is PWM)
  */
 struct lm3530_platform_data {
        enum lm3530_mode mode;
@@ -107,6 +114,8 @@ struct lm3530_platform_data {
        u32 als_vmax;
 
        u8 brt_val;
+
+       struct lm3530_pwm_data pwm_data;
 };
 
 #endif /* _LINUX_LED_LM3530_H__ */
This page took 0.037065 seconds and 5 git commands to generate.