[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1494319733-28375-1-git-send-email-gurooodas@gmail.com>
Date: Tue, 9 May 2017 01:48:53 -0700
From: Guru Das Srinagesh <gurooodas@...il.com>
To: linux@...ck-us.net, groeck@...omium.org,
gregkh@...uxfoundation.org, heikki.krogerus@...ux.intel.com
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] staging: typec: Make undeclared symbol static
Fix sparse warning:
drivers/staging/typec/tcpci.c:428:26: warning: symbol 'tcpci_tcpc_config'
was not declared. Should it be static?
Signed-off-by: Guru Das Srinagesh <gurooodas@...il.com>
---
drivers/staging/typec/tcpci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/typec/tcpci.c b/drivers/staging/typec/tcpci.c
index 5e5be74..df72d8b 100644
--- a/drivers/staging/typec/tcpci.c
+++ b/drivers/staging/typec/tcpci.c
@@ -425,7 +425,7 @@ static const struct regmap_config tcpci_regmap_config = {
.max_register = 0x7F, /* 0x80 .. 0xFF are vendor defined */
};
-const struct tcpc_config tcpci_tcpc_config = {
+static const struct tcpc_config tcpci_tcpc_config = {
.type = TYPEC_PORT_DFP,
.default_role = TYPEC_SINK,
};
--
2.7.4
Powered by blists - more mailing lists