summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorChen Wandun <chenwandun@huawei.com>2019-12-20 10:41:44 +0100
committerSebastian Reichel <sre@kernel.org>2020-01-15 21:31:07 +0100
commit577233a3f5637aff40e376572d5ed24ff80204d0 (patch)
tree0c89e7fdd743d99ae9143aadc55890fc76b58318 /drivers/power
parentpower: reset: at91-poweroff: use proper master clock register offset (diff)
downloadlinux-577233a3f5637aff40e376572d5ed24ff80204d0.tar.xz
linux-577233a3f5637aff40e376572d5ed24ff80204d0.zip
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: a3d70dacc727 ("power: suppy: ucs1002: disable power when max current is 0") Signed-off-by: Chen Wandun <chenwandun@huawei.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/ucs1002_power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/ucs1002_power.c b/drivers/power/supply/ucs1002_power.c
index 0ca80d00b80a..cdb9a23d825f 100644
--- a/drivers/power/supply/ucs1002_power.c
+++ b/drivers/power/supply/ucs1002_power.c
@@ -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);