platform/chrome: cros_ec_typec: Store cable plug type
authorPrashant Malani <pmalani@chromium.org>
Mon, 16 Nov 2020 20:11:52 +0000 (12:11 -0800)
committerBenson Leung <bleung@chromium.org>
Tue, 5 Jan 2021 19:04:09 +0000 (11:04 -0800)
commit72d6e32bd85bd1e5cb5aa467f4eb5d0a69559953
treebc9110c0c81f57a34b30c5dc9819f3a26fad63d2
parent8b46a212ad11f25e5f77e3a2c6df1d0f758583b7
platform/chrome: cros_ec_typec: Store cable plug type

Use the PD VDO Type C cable plug type macro to retrieve and store the
cable plug type in the cable descriptor.

Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.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-9-pmalani@chromium.org
drivers/platform/chrome/cros_ec_typec.c