[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1494345899-14283-1-git-send-email-linux@roeck-us.net>
Date: Tue, 9 May 2017 09:04:53 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Yueyao Zhu <yueyao.zhu@...il.com>, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org,
Olivier Leveque <o_leveque@...nge.fr>,
Guenter Roeck <linux@...ck-us.net>
Subject: [PATCH 1/7] staging: typec: tcpci: declare private structure as static
From: Olivier Leveque <o_leveque@...nge.fr>
This fixes a sparse warning regarding an undeclared symbol. Since the
structure tcpci_tcpc_config is private to tcpci.c, it should be declared as
static.
Signed-off-by: Olivier Leveque <o_leveque@...nge.fr>
Signed-off-by: Guenter Roeck <linux@...ck-us.net>
---
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 5e5be74c7850..df72d8b01e73 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