platform/chrome: cros_ec_typec: Use notifier for updates
authorPrashant Malani <pmalani@chromium.org>
Wed, 15 Apr 2020 05:29:41 +0000 (22:29 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 15 Apr 2020 06:00:02 +0000 (08:00 +0200)
commit7110f5f0e5ab329b6ed840c06e7321bbf331ccf5
tree742fee0d57c853ae6a4b8a6c4371ce0d768fcbc9
parentcf96e284deda69e26a90b8f278967998e7b628ab
platform/chrome: cros_ec_typec: Use notifier for updates

Register a listener for the cros-usbpd-notifier, and update port state
when a notification comes in.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/Kconfig
drivers/platform/chrome/cros_ec_typec.c