diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2012-01-26 22:59:00 -0800 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-03-26 20:40:57 +0400 |
commit | 9b11adc773b45845cc384bf01a623bba628f9f99 (patch) | |
tree | db73585c066e93372fe69f45950e33a03ef589e4 | |
parent | 7336880e3d73ee38b0c2bb99674e7e79d87dd43e (diff) | |
download | op-kernel-dev-9b11adc773b45845cc384bf01a623bba628f9f99.zip op-kernel-dev-9b11adc773b45845cc384bf01a623bba628f9f99.tar.gz |
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>
-rw-r--r-- | include/linux/lp8727.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/linux/lp8727.h b/include/linux/lp8727.h index 95371c4..a508b45 100644 --- a/include/linux/lp8727.h +++ b/include/linux/lp8727.h @@ -35,13 +35,24 @@ enum lp8727_ichg { ICHG_1000mA, }; +/** + * struct lp8727_chg_param + * @eoc_level : end of charge level setting + * @ichg : charging current + */ struct lp8727_chg_param { - /* end of charge level setting */ enum lp8727_eoc_level eoc_level; - /* charging current */ enum lp8727_ichg ichg; }; +/** + * struct lp8727_platform_data + * @get_batt_present : check battery status - exists or not + * @get_batt_level : get battery voltage (mV) + * @get_batt_capacity : get battery capacity (%) + * @get_batt_temp : get battery temperature + * @ac, @usb : charging parameters each charger type + */ struct lp8727_platform_data { u8 (*get_batt_present)(void); u16 (*get_batt_level)(void); |