aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorOlivier Leveque <o_leveque@orange.fr>2017-05-09 09:04:53 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-15 11:23:55 +0200
commitc6a9d3eaee508f53ec4f777035522565ed567692 (patch)
treec26d94d867004acf39a19ba44deda05ed1f1cd6a /drivers/staging
parentstaging: MAINTAINERS: add GBY as ccree maintainer (diff)
downloadlinux-dev-c6a9d3eaee508f53ec4f777035522565ed567692.tar.xz
linux-dev-c6a9d3eaee508f53ec4f777035522565ed567692.zip
staging: typec: tcpci: declare private structure as static
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@orange.fr> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/typec/tcpci.c2
1 files changed, 1 insertions, 1 deletions
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,
};