Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ea859b1 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bc05a9c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,