platform/chrome: cros_typec_switch: Check for retimer flag
authorPrashant Malani <pmalani@chromium.org>
Wed, 4 Jan 2023 06:08:45 +0000 (06:08 +0000)
committerPrashant Malani <pmalani@chromium.org>
Tue, 10 Jan 2023 20:47:32 +0000 (20:47 +0000)
commit441529bed41cd6f368fe337ebbb4920e3519da24
tree6c0d21667ca908f41c10aaa02a348cff1fd27e23
parentef9c00dbd383d2b68207cc996caa05c25c7894f5
platform/chrome: cros_typec_switch: Check for retimer flag

Not all ports have retimers. Only register a retimer switch if the
"retimer-switch" property is present for that port's mux
device.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Link: https://lore.kernel.org/r/20230104060846.112216-2-pmalani@chromium.org
drivers/platform/chrome/cros_typec_switch.c