OSDN Git Service

platform/chrome: cros_usbpd_notify: Add driver data struct
authorPrashant Malani <pmalani@chromium.org>
Mon, 16 Mar 2020 08:28:30 +0000 (01:28 -0700)
committerBenson Leung <bleung@chromium.org>
Tue, 17 Mar 2020 21:21:53 +0000 (14:21 -0700)
commitf5d84a21fab7d11ffdf740f6d44846f34f42c8e1
treea38b60839ac7d116c1eda3c7dd104d12b869bfea
parent92e399c07b7e71805306e8ce82960f10400c4ffe
platform/chrome: cros_usbpd_notify: Add driver data struct

Introduce a device driver data structure, cros_usbpd_notify_data, in
which we can store the notifier block object and pointers to the struct
cros_ec_device and struct device objects.

This will make it more convenient to access these pointers when
executing both platform and ACPI callbacks.

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