Commit 577233a3 authored by Chen Wandun's avatar Chen Wandun Committed by Sebastian Reichel
Browse files

power: suppy: ucs1002: Make the symbol 'ucs1002_regulator_enable' static



Fix the following sparse warning:

drivers/power/supply/ucs1002_power.c:492:5: warning: symbol 'ucs1002_regulator_enable' was not declared. Should it be static?

Fixes: a3d70dac ("power: suppy: ucs1002: disable power when max current is 0")
Signed-off-by: default avatarChen Wandun <chenwandun@huawei.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent d39284f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -489,7 +489,7 @@ static irqreturn_t ucs1002_alert_irq(int irq, void *data)
	return IRQ_HANDLED;
}

int ucs1002_regulator_enable(struct regulator_dev *rdev)
static int ucs1002_regulator_enable(struct regulator_dev *rdev)
{
	struct ucs1002_info *info = rdev_get_drvdata(rdev);