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)
commit7cf432bf0586d6b44eea5d39bb173ce0dab3d1ab
tree246c8f5a6b853af65eabe1354ec14003f3507328
parenteffca7bdb3503519422f2fba5961759c0ea2ffce
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