thunderbolt: switch: Fix function name in the header
authorLee Jones <lee.jones@linaro.org>
Wed, 27 Jan 2021 11:25:54 +0000 (11:25 +0000)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 28 Jan 2021 10:57:06 +0000 (13:57 +0300)
Fixes the following W=1 kernel build warning(s):

 drivers/thunderbolt/switch.c:1322: warning: expecting prototype for reset_switch(). Prototype was for tb_switch_reset() instead

Cc: Andreas Noever <andreas.noever@gmail.com>
Cc: Michael Jamet <michael.jamet@intel.com>
Cc: Yehezkel Bernat <YehezkelShB@gmail.com>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c

index 4fbc031994244ae27fcc19507706d82d829a5e6b..6ca3efba45206fd3d092a96813d9b6ae96593dda 100644 (file)
@@ -1313,7 +1313,7 @@ static void tb_dump_switch(const struct tb *tb, const struct tb_switch *sw)
 }
 
 /**
- * reset_switch() - reconfigure route, enable and send TB_CFG_PKG_RESET
+ * tb_switch_reset() - reconfigure route, enable and send TB_CFG_PKG_RESET
  * @sw: Switch to reset
  *
  * Return: Returns 0 on success or an error code on failure.