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.
Showing the changes to include/linux/platform_data (1 of 2 files). Show all
Unified · Split
| @@ -53,6 +53,7 @@ struct lp8727_chg_param { · 52 unmodified lines | ||
| 53 | 53 | * @get_batt_temp : get battery temperature |
| 54 | 54 | * @ac : charging parameters for AC type charger |
| 55 | 55 | * @usb : charging parameters for USB type charger |
| 56 | + * @debounce_msec : interrupt debounce time | |
| 56 | 57 | */ |
| 57 | 58 | struct lp8727_platform_data { |
| 58 | 59 | u8 (*get_batt_present)(void); |
| @@ -61,6 +62,7 @@ struct lp8727_platform_data { · 2 unmodified lines | ||
| 61 | 62 | u8 (*get_batt_temp)(void); |
| 62 | 63 | struct lp8727_chg_param *ac; |
| 63 | 64 | struct lp8727_chg_param *usb; |
| 65 | + unsigned int debounce_msec; | |
| 64 | 66 | }; |
| 65 | 67 | |
| 66 | 68 | #endif |