platform/chrome: cros_ec_typec: Move mux flag checks
authorPrashant Malani <pmalani@chromium.org>
Tue, 8 Feb 2022 18:47:18 +0000 (18:47 +0000)
committerPrashant Malani <pmalani@chromium.org>
Tue, 15 Feb 2022 19:49:20 +0000 (19:49 +0000)
commit53a0023c64509ac0fa3961f321659a6fb0b62794
treef1c590ed153a99c7f16667346fa3d22f785a9b93
parentffebd90532728086007038986900426544e3df4e
platform/chrome: cros_ec_typec: Move mux flag checks

Move mux and role flag checks inside of cros_typec_configure_mux(),
which is a more logical location for them.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/chrome-platform/20220208184721.1697194-2-pmalani@chromium.org/
drivers/platform/chrome/cros_ec_typec.c