Skip to content

Commit 577233a

Browse files
Chen Wandunsre
authored andcommitted
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: a3d70da ("power: suppy: ucs1002: disable power when max current is 0") Signed-off-by: Chen Wandun <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent d39284f commit 577233a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/ucs1002_power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ static irqreturn_t ucs1002_alert_irq(int irq, void *data)
489489
return IRQ_HANDLED;
490490
}
491491

492-
int ucs1002_regulator_enable(struct regulator_dev *rdev)
492+
static int ucs1002_regulator_enable(struct regulator_dev *rdev)
493493
{
494494
struct ucs1002_info *info = rdev_get_drvdata(rdev);
495495

0 commit comments

Comments
 (0)