platform/chrome: cros_ec_typec: Register partner altmodes
authorPrashant Malani <pmalani@chromium.org>
Thu, 29 Oct 2020 22:27:42 +0000 (15:27 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 12 Nov 2020 20:32:09 +0000 (21:32 +0100)
commitde0f49487db3667f5204dcec6d3482c9bd1a0a30
treea6b621ada92aacf4a2dfd40691b5b64a1bcc9318
parentf6f668118918f533676e51f3214f5a104562b59c
platform/chrome: cros_ec_typec: Register partner altmodes

Use the discovery data from the Chrome EC to register parter altmodes
with the Type C Connector Class framework. Also introduce a node
struct to keep track of the list of registered alt modes.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20201029222738.482366-8-pmalani@chromium.org
drivers/platform/chrome/cros_ec_typec.c