platform/chrome: cros_ec_typec: Stash port driver info
authorPrashant Malani <pmalani@chromium.org>
Wed, 28 Dec 2022 00:45:06 +0000 (00:45 +0000)
committerPrashant Malani <pmalani@chromium.org>
Mon, 9 Jan 2023 20:32:53 +0000 (20:32 +0000)
commit4dc9355cef4f507f12289c56b7ea5df911758278
treeb85dfb6e48ae07d66676b9c94fa103cfdd2cf667
parent0e0dba884c4318c433756118794a7dff8947e6ce
platform/chrome: cros_ec_typec: Stash port driver info

Stash port number and a pointer to the driver-specific struct in the
local typec port struct.

These can be useful to the port driver to figure out how to communicate
with the Chrome EC when an altmode-driver related callback is invoked
from the Type-C class code.

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-4-pmalani@chromium.org
drivers/platform/chrome/cros_ec_typec.c