From: Olivier Leveque Date: Tue, 9 May 2017 16:04:53 +0000 (-0700) Subject: staging: typec: tcpci: declare private structure as static X-Git-Tag: v4.14-rc1~868^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6a9d3eaee508f53ec4f777035522565ed567692;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- 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, };