]> git.baikalelectronics.ru Git - kernel.git/commit
HID: i2c-hid: Add support for ACPI GPIO interrupts
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 23 Feb 2015 13:52:45 +0000 (15:52 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 24 Feb 2015 19:53:30 +0000 (20:53 +0100)
commitf77aa70760b1099fa2658d38e18bd249c43d09f1
tree33ad6cb9a02e639f75cc999c53a649c5e5b1cd2f
parent94de93977cd3ad8454236ef3b07795c616e1a25a
HID: i2c-hid: Add support for ACPI GPIO interrupts

The HID over I2C specification allows to have the interrupt for a HID
device to be GPIO instead of directly connected to the IO-APIC.

Add support for this so that when the driver does not find proper interrupt
number from the I2C client structure we check if it has ACPI GpioInt()
resource listed in _CRS. If it is found we convert it to an interrupt
number and use it instead.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c