History

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.

Kim, Milo committed 14 years ago

Commit 60fd57e1 parent 318cb382 files · +11 −3Browse files

Showing the changes to include/linux/platform_data (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/lp8727.h+2−0
@@ -53,6 +53,7 @@ struct lp8727_chg_param { · 52 unmodified lines
53 * @get_batt_temp : get battery temperature53 * @get_batt_temp : get battery temperature
54 * @ac : charging parameters for AC type charger54 * @ac : charging parameters for AC type charger
55 * @usb : charging parameters for USB type charger55 * @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 { · 2 unmodified lines
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#endif68#endif