]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_usbpd_notify: Amend ACPI driver to plat
authorPrashant Malani <pmalani@chromium.org>
Mon, 16 Mar 2020 08:28:32 +0000 (01:28 -0700)
committerBenson Leung <bleung@chromium.org>
Tue, 17 Mar 2020 21:22:12 +0000 (14:22 -0700)
commitcaab8e7a4b2cbc4836eef7c4c2ef736efe3442c4
tree30de667a83ec107aed0e4c9985e6bf55a23b6461
parent24a6bcaf6f75bcba1976fd1f1cae2c076351964c
platform/chrome: cros_usbpd_notify: Amend ACPI driver to plat

Convert the ACPI driver into the equivalent platform driver, with the
same ACPI match table as before. This allows the device driver to access
the parent platform EC device and its cros_ec_device struct, which will
be required to communicate with the EC to pull PD Host event information
from it.

Also change the ACPI driver name to "cros-usbpd-notify-acpi" so that
there is no confusion between it and the "regular" platform driver on
platforms that have both CONFIG_ACPI and CONFIG_OF enabled.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_usbpd_notify.c