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>
This commit is contained in:
parent
318cb389d0
commit
60fd57e06e
2 changed files with 11 additions and 3 deletions
|
|
@ -53,6 +53,7 @@ struct lp8727_chg_param {
|
|||
* @get_batt_temp : get battery temperature
|
||||
* @ac : charging parameters for AC type charger
|
||||
* @usb : charging parameters for USB type charger
|
||||
* @debounce_msec : interrupt debounce time
|
||||
*/
|
||||
struct lp8727_platform_data {
|
||||
u8 (*get_batt_present)(void);
|
||||
|
|
@ -61,6 +62,7 @@ struct lp8727_platform_data {
|
|||
u8 (*get_batt_temp)(void);
|
||||
struct lp8727_chg_param *ac;
|
||||
struct lp8727_chg_param *usb;
|
||||
unsigned int debounce_msec;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue