aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/lp8727.h
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2012-08-31 05:23:25 -0400
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-09-20 20:57:12 -0400
commit60fd57e06ed7ea13bc0bdf4cb5324d47039105ab (patch)
tree784c8828925917ab2d692c2641dd2cdb78d15b24 /include/linux/platform_data/lp8727.h
parent318cb389d020e3107979d7d794ab992e4bcd6665 (diff)
lp8727_charger: Add configurable debouce timer
Debounce time is configurable in the platform side. If it is not defined, the default value is 270ms. Platform data is msec unit, and this time is converted to jiffies internally. The workqueue uses this jiffies time in the interrupt handling. So debounce_jiffies is added in the private data. Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'include/linux/platform_data/lp8727.h')
-rw-r--r--include/linux/platform_data/lp8727.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/lp8727.h b/include/linux/platform_data/lp8727.h
index f4bcdd5f20a4..54b77880ed67 100644
--- a/include/linux/platform_data/lp8727.h
+++ b/include/linux/platform_data/lp8727.h
@@ -53,6 +53,7 @@ struct lp8727_chg_param {
53 * @get_batt_temp : get battery temperature 53 * @get_batt_temp : get battery temperature
54 * @ac : charging parameters for AC type charger 54 * @ac : charging parameters for AC type charger
55 * @usb : charging parameters for USB type charger 55 * @usb : charging parameters for USB type charger
56 * @debounce_msec : interrupt debounce time
56 */ 57 */
57struct lp8727_platform_data { 58struct lp8727_platform_data {
58 u8 (*get_batt_present)(void); 59 u8 (*get_batt_present)(void);
@@ -61,6 +62,7 @@ struct lp8727_platform_data {
61 u8 (*get_batt_temp)(void); 62 u8 (*get_batt_temp)(void);
62 struct lp8727_chg_param *ac; 63 struct lp8727_chg_param *ac;
63 struct lp8727_chg_param *usb; 64 struct lp8727_chg_param *usb;
65 unsigned int debounce_msec;
64}; 66};
65 67
66#endif 68#endif