Hans de Goede 9b13a4ca8d Input: axp20x-pek - do not register input device on some systems
On some systems (Intel tablets with axp288 pmic) the powerbutton is
also connected to a gpio pin of the SoC, advertised through the
"INTCFD9" / "PNP0C40" acpi device. This leads to double reporting
of powerbutton events, which is undesirable, so one driver needs
to not report input events in this case.

Since the soc_button_array driver for the "PNP0C40" acpi device
also handles wake from suspend on these tablets and since the
axp20x-pel driver requires relative expensive i2c accrsses,
it is best for the axp20x-pek driver to not register an input device
in this case.

Note that this commit leaves the axp20x-driver bound to the
device, rather then returning -ENODEV, this is done so that the
sysfs attributes it offers are kept around.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2017-03-09 10:01:03 -08:00
..
2017-01-24 12:37:43 -08:00
2013-12-06 02:06:29 -08:00
2017-01-31 00:18:07 -08:00
2017-01-31 00:18:07 -08:00
2016-05-25 10:40:15 -07:00
2016-10-13 17:25:40 -07:00
2017-01-24 12:37:43 -08:00
2010-02-09 11:13:56 +01:00