platform/chrome: cros_ec_typec: Set Partner PD revision from status
authorBenson Leung <bleung@chromium.org>
Fri, 29 Jan 2021 06:14:05 +0000 (22:14 -0800)
committerBenson Leung <bleung@chromium.org>
Tue, 2 Feb 2021 07:49:54 +0000 (23:49 -0800)
commitcefc011f8daf0ff3003208349b85174cda0b708d
treeb9a00743468b3284c51f3ac546efa5931d44f72f
parent3b3dd1f0dbfe92781c60f36ea5c22b26360f9909
platform/chrome: cros_ec_typec: Set Partner PD revision from status

Status provides sop_revision. Process it, and set it using the new
setter in the typec class.

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