platform/chrome: cros_ec_typec: Register SOP' cable plug
authorPrashant Malani <pmalani@chromium.org>
Mon, 16 Nov 2020 20:11:56 +0000 (12:11 -0800)
committerBenson Leung <bleung@chromium.org>
Tue, 5 Jan 2021 19:06:26 +0000 (11:06 -0800)
commitf4edab68e10119a71a9e62a7fe537685d0f41478
tree1847fee6913bd2a15d3c7b094222d6ab7228c31a
parent5992297639115785e167b9977101287e45106515
platform/chrome: cros_ec_typec: Register SOP' cable plug

In order to register cable alternate modes, we need to first register a
plug object. Use the Type C connector class framework to register a SOP'
plug for this purpose.

Since a cable and plug go hand in hand, we can handle the registration
and removal together.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
Link: https://lore.kernel.org/r/20201116201150.2919178-11-pmalani@chromium.org
drivers/platform/chrome/cros_ec_typec.c