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
5353 * @get_batt_temp : get battery temperature
5454 * @ac : charging parameters for AC type charger
5555 * @usb : charging parameters for USB type charger
56+ * @debounce_msec : interrupt debounce time
5657 */
5758 struct lp8727_platform_data {
5859 u8 (*get_batt_present)(void);
@@ -61,6 +62,7 @@ struct lp8727_platform_data { · 2 unmodified lines
6162 u8 (*get_batt_temp)(void);
6263 struct lp8727_chg_param *ac;
6364 struct lp8727_chg_param *usb;
65+ unsigned int debounce_msec;
6466 };
6567
6668 #endif