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)
commit7e91e1ac60bb0f43e149fde7c5862d04ba27d7ad
tree30de667a83ec107aed0e4c9985e6bf55a23b6461
parentf5d84a21fab7d11ffdf740f6d44846f34f42c8e1
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