platform/chrome: cros_typec_switch: Register mode switches
authorPrashant Malani <pmalani@chromium.org>
Tue, 16 Aug 2022 21:48:33 +0000 (21:48 +0000)
committerPrashant Malani <pmalani@chromium.org>
Thu, 18 Aug 2022 22:20:36 +0000 (22:20 +0000)
commit9e6e05169980e83a870dd595012ec014a5fc440c
treebc938d4539e0636d84ee367deb7a53059341edef
parentcf6c767244ed599492ac4275d1d94435d9ec7917
platform/chrome: cros_typec_switch: Register mode switches

Register mode switch devices for Type-C connectors, when they are
specified by firmware. These control Type-C configuration for any USB
Type-C mode switches (sometimes known as "muxes") which are controlled
by the ChromeOS EC.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220816214857.2088914-6-pmalani@chromium.org
drivers/platform/chrome/cros_typec_switch.c