From: Kim, Milo Date: Fri, 27 Jan 2012 06:59:00 +0000 (-0800) Subject: lp8727_charger: Add description of platform data X-Git-Tag: v3.4-rc1~20^2~25 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=9b11adc773b45845cc384bf01a623bba628f9f99;p=linux.git lp8727_charger: Add description of platform data Add brief description of lp8727_platform_data and lp8727_chg_param. Signed-off-by: Milo(Woogyom) Kim Signed-off-by: Anton Vorontsov --- 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 { 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);