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

Commit c128d397 authored by Wei Yongjun's avatar Wei Yongjun Committed by Sebastian Reichel
Browse files

power_supply: Fix sparse non static symbol warning



Fixes the following sparse warnings:

drivers/power/power_supply_core.c:540:5: warning:
 symbol '__power_supply_register' was not declared. Should it be static?

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 6bb1d272
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -537,7 +537,8 @@ static void psy_unregister_cooler(struct power_supply *psy)
}
#endif

int __power_supply_register(struct device *parent, struct power_supply *psy, bool ws)
static int __power_supply_register(struct device *parent,
				   struct power_supply *psy, bool ws)
{
	struct device *dev;
	int rc;