]> 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)
commit89fd493f6384b513b6358e381930e832f31d5158
tree6b0dea932c9fc68f112f79973dae0a36bf7d4669
parentdec7f8449153b5ced7deaee331b5ab7843246913
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