HID: i2c-hid: force the IRQ level trigger only when not set
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 21 Nov 2016 14:21:27 +0000 (15:21 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 28 Nov 2016 13:42:53 +0000 (14:42 +0100)
commit00f7fea5da4986af93457b625a379d5e3ee51754
treec24e7a64e28ed9968eca8cfb0c1b1221a6963533
parent71af01a8c85ad89449209594133bdfdfaa9f1e2a
HID: i2c-hid: force the IRQ level trigger only when not set

Instead of forcing the level trigger of the IRQ, we can count
on ACPI or OF to set it up for us.

The first release of the HID over I2C specification mentioned
that the level trigger needed to be active low. In the latest
version of the specification, there is no such explicit mention,
so it's better to not assume one.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c