platform/chrome: cros_ec_typec: Set port alt mode drvdata
authorPrashant Malani <pmalani@chromium.org>
Wed, 28 Dec 2022 00:45:07 +0000 (00:45 +0000)
committerPrashant Malani <pmalani@chromium.org>
Mon, 9 Jan 2023 20:32:53 +0000 (20:32 +0000)
commitc856e3ff98bba1950259d5f52b45760e80ace412
treec21528616586e4423b57c0dcb0c2f8ba0f61f982
parent4dc9355cef4f507f12289c56b7ea5df911758278
platform/chrome: cros_ec_typec: Set port alt mode drvdata

Save the ChromeOS-specific Type-C port info in the port altmodes' driver
data. This makes communication with the ChromeOS EC (Embedded
Controller) easier when alt mode drivers need to send messages to
peripherals.

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