Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: typec: fsusb302: remove unused variables snk_pdo and toggling_mode_name

Variables snk_pdo and toggling_mode_name are defined but are not used and
hence can be removed.

Cleans up clang warnings:
warning: 'snk_pdo' defined but not used [-Wunused-const-variable=]
warning: 'toggling_mode_name' defined but not used [-Wunused-const-variable=]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
697fa834 2ccaabeb

-11
-11
drivers/usb/typec/fusb302/fusb302.c
··· 48 48 TOGGLING_MODE_SRC, 49 49 }; 50 50 51 - static const char * const toggling_mode_name[] = { 52 - [TOGGLINE_MODE_OFF] = "toggling_OFF", 53 - [TOGGLING_MODE_DRP] = "toggling_DRP", 54 - [TOGGLING_MODE_SNK] = "toggling_SNK", 55 - [TOGGLING_MODE_SRC] = "toggling_SRC", 56 - }; 57 - 58 51 enum src_current_status { 59 52 SRC_CURRENT_DEFAULT, 60 53 SRC_CURRENT_MEDIUM, ··· 1168 1175 (PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM) 1169 1176 1170 1177 static const u32 src_pdo[] = { 1171 - PDO_FIXED(5000, 400, PDO_FIXED_FLAGS), 1172 - }; 1173 - 1174 - static const u32 snk_pdo[] = { 1175 1178 PDO_FIXED(5000, 400, PDO_FIXED_FLAGS), 1176 1179 }; 1177 1180