mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
UPSTREAM: 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=]
Change-Id: I94d335fee54eda1a3e10ade5333a1db1a6c93336
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>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 697fa834c3)
This commit is contained in:
committed by
Tao Huang
parent
0517528b8e
commit
4c99f92186
@@ -48,13 +48,6 @@ enum toggling_mode {
|
||||
TOGGLING_MODE_SRC,
|
||||
};
|
||||
|
||||
static const char * const toggling_mode_name[] = {
|
||||
[TOGGLINE_MODE_OFF] = "toggling_OFF",
|
||||
[TOGGLING_MODE_DRP] = "toggling_DRP",
|
||||
[TOGGLING_MODE_SNK] = "toggling_SNK",
|
||||
[TOGGLING_MODE_SRC] = "toggling_SRC",
|
||||
};
|
||||
|
||||
enum src_current_status {
|
||||
SRC_CURRENT_DEFAULT,
|
||||
SRC_CURRENT_MEDIUM,
|
||||
@@ -1184,10 +1177,6 @@ static const u32 src_pdo[] = {
|
||||
PDO_FIXED(5000, 400, PDO_FIXED_FLAGS),
|
||||
};
|
||||
|
||||
static const u32 snk_pdo[] = {
|
||||
PDO_FIXED(5000, 400, PDO_FIXED_FLAGS),
|
||||
};
|
||||
|
||||
static const struct tcpc_config fusb302_tcpc_config = {
|
||||
.src_pdo = src_pdo,
|
||||
.nr_src_pdo = ARRAY_SIZE(src_pdo),
|
||||
|
||||
Reference in New Issue
Block a user