platform/chrome: cros_ec_typec: Make configure_mux static
authorPrashant Malani <pmalani@chromium.org>
Sat, 20 Jun 2020 02:00:37 +0000 (19:00 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Mon, 22 Jun 2020 15:52:26 +0000 (17:52 +0200)
Since cros_typec_configure_mux() is only used in cros-ec-typec,
it should be marked static.

Fixes: 7e7def15fa4b ("platform/chrome: cros_ec_typec: Add USB mux control")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec_typec.c

index 509fc761906bba138d557add85750f82b826a454..1df1386f32e4fc421f44eee9cd25e676a9e289fc 100644 (file)
@@ -428,9 +428,9 @@ static int cros_typec_enable_dp(struct cros_typec_data *typec,
        return typec_mux_set(port->mux, &port->state);
 }
 
-int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num,
-                            uint8_t mux_flags,
-                            struct ec_response_usb_pd_control_v2 *pd_ctrl)
+static int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num,
+                               uint8_t mux_flags,
+                               struct ec_response_usb_pd_control_v2 *pd_ctrl)
 {
        struct cros_typec_port *port = typec->ports[port_num];
        enum typec_orientation orientation;