]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24a6bcaf6f75bcba1976fd1f1cae2c076351964c
treea38b60839ac7d116c1eda3c7dd104d12b869bfea
parent62f80534bdb92608ad16584782896da92c702d4a
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