Input: add driver for AXP20x Power Enable Key
authorCarlo Caione <carlo@caione.org>
Mon, 29 Dec 2014 19:20:54 +0000 (11:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 8 Jan 2015 21:53:51 +0000 (13:53 -0800)
commit5b6c26a9f6437c4467f5d7cbf0313a7ae2be86b1
tree375a3c783a93930c81a673fab90df505a08966e5
parent2c50ad340c246b7f58f2d916006afe2d85d60698
Input: add driver for AXP20x Power Enable Key

This change adds support for the Power Enable Key found on MFD AXP202
and AXP209. Besides the basic support for the button, the driver adds
two entries in sysfs to configure the time delay for power on/off.

Signed-off-by: Carlo Caione <carlo@caione.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
[wens@csie.org: made axp20x_pek_remove() static; removed driver owner
 field; fixed path for sysfs entries]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/ABI/testing/sysfs-driver-input-axp-pek [new file with mode: 0644]
drivers/input/misc/Kconfig
drivers/input/misc/Makefile
drivers/input/misc/axp20x-pek.c [new file with mode: 0644]