]> git.baikalelectronics.ru Git - kernel.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)
commitcc30f54e8a12dfbb976996e376404d184535d9e2
tree6b0dea932c9fc68f112f79973dae0a36bf7d4669
parent4cb775b3d524301bc1d663ff140d449e247137d2
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