summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkbuild test robot <lkp@intel.com>2020-05-30 21:03:14 +0800
committerMark Brown <broonie@kernel.org>2020-06-01 12:52:34 +0100
commit0b0c0bd818ef76a20f58c3cb1ac96a3056ccb681 (patch)
tree03af1c64d7e416bd9eab5ded9d099aca81d07301
parent81227f49bd272cbcd9bb4650b250519c8aa22065 (diff)
regulator: max8998: max8998_set_current_limit() can be static
Fixes: 4ffea5e083f8 ("regulator: max8998: Add charger regulator") Signed-off-by: kbuild test robot <lkp@intel.com> Link: https://lore.kernel.org/r/20200530130314.GA73557@d7d8dbfb64ff Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/regulator/max8998.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/max8998.c b/drivers/regulator/max8998.c
index 668ced006417..340413bba0c5 100644
--- a/drivers/regulator/max8998.c
+++ b/drivers/regulator/max8998.c
@@ -371,8 +371,8 @@ static int max8998_set_voltage_buck_time_sel(struct regulator_dev *rdev,
return 0;
}
-int max8998_set_current_limit(struct regulator_dev *rdev,
- int min_uA, int max_uA)
+static int max8998_set_current_limit(struct regulator_dev *rdev,
+ int min_uA, int max_uA)
{
struct max8998_data *max8998 = rdev_get_drvdata(rdev);
struct i2c_client *i2c = max8998->iodev->i2c;