aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2012-01-27 01:59:00 -0500
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-03-26 12:40:57 -0400
commit9b11adc773b45845cc384bf01a623bba628f9f99 (patch)
treedb73585c066e93372fe69f45950e33a03ef589e4 /include/linux
parent7336880e3d73ee38b0c2bb99674e7e79d87dd43e (diff)
lp8727_charger: Add description of platform data
Add brief description of lp8727_platform_data and lp8727_chg_param. Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/lp8727.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/linux/lp8727.h b/include/linux/lp8727.h
index 95371c46dc3a..a508b4555e60 100644
--- a/include/linux/lp8727.h
+++ b/include/linux/lp8727.h
@@ -35,13 +35,24 @@ enum lp8727_ichg {
35 ICHG_1000mA, 35 ICHG_1000mA,
36}; 36};
37 37
38/**
39 * struct lp8727_chg_param
40 * @eoc_level : end of charge level setting
41 * @ichg : charging current
42 */
38struct lp8727_chg_param { 43struct lp8727_chg_param {
39 /* end of charge level setting */
40 enum lp8727_eoc_level eoc_level; 44 enum lp8727_eoc_level eoc_level;
41 /* charging current */
42 enum lp8727_ichg ichg; 45 enum lp8727_ichg ichg;
43}; 46};
44 47
48/**
49 * struct lp8727_platform_data
50 * @get_batt_present : check battery status - exists or not
51 * @get_batt_level : get battery voltage (mV)
52 * @get_batt_capacity : get battery capacity (%)
53 * @get_batt_temp : get battery temperature
54 * @ac, @usb : charging parameters each charger type
55 */
45struct lp8727_platform_data { 56struct lp8727_platform_data {
46 u8 (*get_batt_present)(void); 57 u8 (*get_batt_present)(void);
47 u16 (*get_batt_level)(void); 58 u16 (*get_batt_level)(void);