HID: i2c-hid: Silently fail probe for CHPN0001 touchscreen
authorHans de Goede <hdegoede@redhat.com>
Tue, 3 Apr 2018 13:16:34 +0000 (15:16 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 16 Apr 2018 12:22:42 +0000 (14:22 +0200)
commit2dcc8197fefc7eb1d255f1856fc0f642c38cf78d
tree4a891383a1fd1588a9c73568b2b7a7ee705ba7c8
parent67767a5f7c6d8b48e2f43475bd4d47bb58397d6d
HID: i2c-hid: Silently fail probe for CHPN0001 touchscreen

The CHPN0001 ACPI device has a _CID of PNP0C50 and even has the _DSM to
get the HID descriptor address, but it is not a HID device at all.

It uses its own protocol which is handled by the (still being upstreamed)
chipone_icn8505 driver. I guess the _CID and the _DSM are the result of
a copy and paste job when the vendor was building the ACPI tables.

Before this patch the i2c_hid_driver's probe function will fail with a
"hid_descr_cmd failed" error.

This commit makes the i2c_hid_driver's probe function instead silently
ignored devices with an ACPI id of CHPN0001.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c