platform/chrome: cros_ec_typec: Factor out PD identity parsing
authorPrashant Malani <pmalani@chromium.org>
Mon, 16 Nov 2020 20:11:46 +0000 (12:11 -0800)
committerBenson Leung <bleung@chromium.org>
Tue, 5 Jan 2021 19:01:51 +0000 (11:01 -0800)
commit8fab2755191f86d4f4195ceb5ade4d4c17052265
tree5a2d5369eb378decb7106bfb9dde2aaae42355e7
parenta906f45d148074274ab4f5df4ebc33412bfa9973
platform/chrome: cros_ec_typec: Factor out PD identity parsing

Factor out the PD identity parsing code into a separate function. This
way it can be re-used for Cable PD identity parsing in future patches.

No functional changes are introduced by this patch.

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