]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
platform/chrome: chromeos_laptop - supply properties for ACPI devices
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 May 2018 00:41:34 +0000 (17:41 -0700)
committerBenson Leung <bleung@chromium.org>
Wed, 23 May 2018 19:48:31 +0000 (12:48 -0700)
commit5020cd29d8bfcb3f3add43ea7d58b07011ab96d8
tree6b0dea932c9fc68f112f79973dae0a36bf7d4669
parent96a938aa214e965d5b4a2f10443b29cad14289b9
platform/chrome: chromeos_laptop - supply properties for ACPI devices

BayTrail-based and newer Chromebooks describe their peripherals in ACPI;
unfortunately their description is not complete, and peripherals
drivers, such as driver for Atmel Touch controllers, has to resort to
DMI-matching to configure the peripherals properly. To avoid polluting
peripheral driver code, let's teach chromeos_laptop driver to supply
missing data via generic device properties.

Note we supply "compatible" string for Atmel peripherals not because it is
needed for matching devices and driver (matching is still done on ACPI HID
entries), but because peripherals driver will be using presence of
"compatible" property to determine if device properties have been attached
to the device, and fail to bind if they are absent.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/chromeos_laptop.c