summaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome/Kconfig
diff options
context:
space:
mode:
authorPrashant Malani <pmalani@chromium.org>2020-04-15 07:29:41 +0200
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2020-04-15 08:00:02 +0200
commit7110f5f0e5ab329b6ed840c06e7321bbf331ccf5 (patch)
tree742fee0d57c853ae6a4b8a6c4371ce0d768fcbc9 /drivers/platform/chrome/Kconfig
parentMerge remote-tracking branch 'origin/chrome-platform-5.7-fixes' into for-kern... (diff)
downloadlinux-7110f5f0e5ab329b6ed840c06e7321bbf331ccf5.tar.xz
linux-7110f5f0e5ab329b6ed840c06e7321bbf331ccf5.zip
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>
Diffstat (limited to 'drivers/platform/chrome/Kconfig')
-rw-r--r--drivers/platform/chrome/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/chrome/Kconfig b/drivers/platform/chrome/Kconfig
index 03ea5129ed0c..a484ab2c91ff 100644
--- a/drivers/platform/chrome/Kconfig
+++ b/drivers/platform/chrome/Kconfig
@@ -217,6 +217,7 @@ config CROS_EC_SYSFS
config CROS_EC_TYPEC
tristate "ChromeOS EC Type-C Connector Control"
depends on MFD_CROS_EC_DEV && TYPEC
+ depends on CROS_USBPD_NOTIFY
default MFD_CROS_EC_DEV
help
If you say Y here, you get support for accessing Type C connector