]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atmel_mxt_ts - require device properties present when probing
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 May 2018 00:14:51 +0000 (17:14 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 24 May 2018 16:31:39 +0000 (09:31 -0700)
commit57d89aa80a5b2c2d588138122d2d33844c800a69
tree246c8f5a6b853af65eabe1354ec14003f3507328
parent0afefca376da4949ce77ca2dd070fafae8b63dbf
Input: atmel_mxt_ts - require device properties present when probing

The driver needs help determining whether it is dealing with a touchscreen
or a touchpad, and with button mapping. Previously we supported passing
this data via device properties, and also had DMI lists for Chromebooks
that specified Atmel devices in ACPI, but did not provide enough data
there. Now that chromeos_laptop driver is adjusted to supply necessary
device properties even for ACPI devices, we can drop the DMI tables and
refuse to probe if device properties are not attached to the device.

We use presence of "compatible" property to determine if device properties
are attached to the device or not and rely on chromeos_laptop to re-probe
the device after attaching missing device properties to it.

Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c