diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-05-10 13:18:29 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-05-20 11:27:02 -0400 |
commit | 6fa4b9d802610116adf4b89c2f9bd155829aafd3 (patch) | |
tree | c03e8909ea06806fa2bf33b0f774d0ab168457a8 /include/linux/mfd | |
parent | 7af5e87dc5e6b6f413ba95b06e06ebf810687858 (diff) |
mfd: Use SI-units for the lm3533 max-current interface
Use SI-units (uA) for max-current interface (5000 - 29800 uA).
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/lm3533.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/mfd/lm3533.h b/include/linux/mfd/lm3533.h index 7cfef9e4f41b..9660febe93c2 100644 --- a/include/linux/mfd/lm3533.h +++ b/include/linux/mfd/lm3533.h | |||
@@ -47,15 +47,15 @@ struct lm3533_als_platform_data { | |||
47 | 47 | ||
48 | struct lm3533_bl_platform_data { | 48 | struct lm3533_bl_platform_data { |
49 | char *name; | 49 | char *name; |
50 | u16 max_current; /* 5000 - 29800 uA (800 uA step) */ | ||
50 | u8 default_brightness; /* 0 - 255 */ | 51 | u8 default_brightness; /* 0 - 255 */ |
51 | u8 max_current; /* 0 - 31 */ | ||
52 | u8 pwm; /* 0 - 0x3f */ | 52 | u8 pwm; /* 0 - 0x3f */ |
53 | }; | 53 | }; |
54 | 54 | ||
55 | struct lm3533_led_platform_data { | 55 | struct lm3533_led_platform_data { |
56 | char *name; | 56 | char *name; |
57 | const char *default_trigger; | 57 | const char *default_trigger; |
58 | u8 max_current; /* 0 - 31 */ | 58 | u16 max_current; /* 5000 - 29800 uA (800 uA step) */ |
59 | u8 pwm; /* 0 - 0x3f */ | 59 | u8 pwm; /* 0 - 0x3f */ |
60 | }; | 60 | }; |
61 | 61 | ||
@@ -91,7 +91,8 @@ extern int lm3533_ctrlbank_disable(struct lm3533_ctrlbank *cb); | |||
91 | 91 | ||
92 | extern int lm3533_ctrlbank_set_brightness(struct lm3533_ctrlbank *cb, u8 val); | 92 | extern int lm3533_ctrlbank_set_brightness(struct lm3533_ctrlbank *cb, u8 val); |
93 | extern int lm3533_ctrlbank_get_brightness(struct lm3533_ctrlbank *cb, u8 *val); | 93 | extern int lm3533_ctrlbank_get_brightness(struct lm3533_ctrlbank *cb, u8 *val); |
94 | extern int lm3533_ctrlbank_set_max_current(struct lm3533_ctrlbank *cb, u8 val); | 94 | extern int lm3533_ctrlbank_set_max_current(struct lm3533_ctrlbank *cb, |
95 | u16 imax); | ||
95 | extern int lm3533_ctrlbank_set_pwm(struct lm3533_ctrlbank *cb, u8 val); | 96 | extern int lm3533_ctrlbank_set_pwm(struct lm3533_ctrlbank *cb, u8 val); |
96 | extern int lm3533_ctrlbank_get_pwm(struct lm3533_ctrlbank *cb, u8 *val); | 97 | extern int lm3533_ctrlbank_get_pwm(struct lm3533_ctrlbank *cb, u8 *val); |
97 | 98 | ||