Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b11adc7 authored by Kim, Milo's avatar Kim, Milo Committed by Anton Vorontsov
Browse files

lp8727_charger: Add description of platform data



Add brief description of lp8727_platform_data and lp8727_chg_param.

Signed-off-by: default avatarMilo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: default avatarAnton Vorontsov <anton.vorontsov@linaro.org>
parent 7336880e
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -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);