diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-09-01 06:20:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-01 13:06:44 -0400 |
commit | 9ea859b11b251df57df5bb9fc146ac014b31071c (patch) | |
tree | 7d04288a0c16147b577812f476347431fcd4f1c0 | |
parent | bc05a9c8774bca5ca95518a0ab3a335e45dcc26b (diff) |
staging: typec: fusb302: make structure fusb302_psy_desc static
The const structure fusb302_psy_desc is local to the source and
does not need to be in global scope, so make it static.
Cleans up sparse warnings
symbol 'fusb302_psy_desc' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/typec/fusb302/fusb302.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/typec/fusb302/fusb302.c b/drivers/staging/typec/fusb302/fusb302.c index cf6355f59cd9..fc6a3cf74eb3 100644 --- a/drivers/staging/typec/fusb302/fusb302.c +++ b/drivers/staging/typec/fusb302/fusb302.c | |||
@@ -1723,7 +1723,7 @@ static enum power_supply_property fusb302_psy_properties[] = { | |||
1723 | POWER_SUPPLY_PROP_CURRENT_MAX, | 1723 | POWER_SUPPLY_PROP_CURRENT_MAX, |
1724 | }; | 1724 | }; |
1725 | 1725 | ||
1726 | const struct power_supply_desc fusb302_psy_desc = { | 1726 | static const struct power_supply_desc fusb302_psy_desc = { |
1727 | .name = "fusb302-typec-source", | 1727 | .name = "fusb302-typec-source", |
1728 | .type = POWER_SUPPLY_TYPE_USB_TYPE_C, | 1728 | .type = POWER_SUPPLY_TYPE_USB_TYPE_C, |
1729 | .properties = fusb302_psy_properties, | 1729 | .properties = fusb302_psy_properties, |