From: Colin Ian King Date: Fri, 1 Sep 2017 10:20:57 +0000 (+0100) Subject: staging: typec: fusb302: make structure fusb302_psy_desc static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9ea859b11b251df57df5bb9fc146ac014b31071c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- 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[] = { POWER_SUPPLY_PROP_CURRENT_MAX, }; -const struct power_supply_desc fusb302_psy_desc = { +static const struct power_supply_desc fusb302_psy_desc = { .name = "fusb302-typec-source", .type = POWER_SUPPLY_TYPE_USB_TYPE_C, .properties = fusb302_psy_properties,