]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb86e77b6f1072d66ec2d0deb90c88a160b8780a5
tree784c8828925917ab2d692c2641dd2cdb78d15b24
parent4fa12f11a0a4e1cabb8b5b4cbef0ad87cb62490d
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