platform/chrome: cros_ec_typec: Relocate set_port_params_v*() functions
authorPrashant Malani <pmalani@chromium.org>
Thu, 29 Oct 2020 22:27:30 +0000 (15:27 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 12 Nov 2020 20:32:08 +0000 (21:32 +0100)
commit0498710be002b35bcb43895c4133a4c4bbfd837e
treeb0359a9000c2b0d427b72cf305308a0e6b63b40e
parent853c1a789f5fe8e783586a5c2dcc2ad1b57ac20f
platform/chrome: cros_ec_typec: Relocate set_port_params_v*() functions

Move the cros_typec_set_port_params_v0/v1() functions closer to the
place where they are called, cros_typec_port_update().

While we are performing the relocation, also move cros_typec_get_mux_info()
closer to its call-site.

No functional changes are introduced by this commit.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Link: https://lore.kernel.org/r/20201029222738.482366-2-pmalani@chromium.org
drivers/platform/chrome/cros_ec_typec.c