lp8727_charger: Add configurable debouce timer
authorKim, Milo <Milo.Kim@ti.com>
Fri, 31 Aug 2012 09:23:25 +0000 (09:23 +0000)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Fri, 21 Sep 2012 00:57:12 +0000 (17:57 -0700)
commit60fd57e06ed7ea13bc0bdf4cb5324d47039105ab
tree784c8828925917ab2d692c2641dd2cdb78d15b24
parent318cb389d020e3107979d7d794ab992e4bcd6665
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>
drivers/power/lp8727_charger.c
include/linux/platform_data/lp8727.h