From: Lee Jones Date: Fri, 26 Jun 2020 06:57:30 +0000 (+0100) Subject: regulator: max8998: Staticify internal function max8998_get_current_limit() X-Git-Tag: v5.10.7~1600^2~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36f69fa96a23a054d3aea5793ce2ef3d95907713;p=platform%2Fkernel%2Flinux-rpi.git regulator: max8998: Staticify internal function max8998_get_current_limit() max8998_get_current_limit() is only used via the .get_current_limit, so it doesn't need to be publicly supported, or to have its own external prototype. Instead, we'll make it static. Fixes the following W=1 warning: drivers/regulator/max8998.c:418:5: warning: no previous prototype for ‘max8998_get_current_limit’ [-Wmissing-prototypes] 418 | int max8998_get_current_limit(struct regulator_dev *rdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Lee Jones Cc: Kyungmin Park Cc: Marek Szyprowski Link: https://lore.kernel.org/r/20200626065738.93412-2-lee.jones@linaro.org Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/max8998.c b/drivers/regulator/max8998.c index 340413b..ac69bdd 100644 --- a/drivers/regulator/max8998.c +++ b/drivers/regulator/max8998.c @@ -415,7 +415,7 @@ static int max8998_set_current_limit(struct regulator_dev *rdev, sel, rdev->desc->csel_mask); } -int max8998_get_current_limit(struct regulator_dev *rdev) +static int max8998_get_current_limit(struct regulator_dev *rdev) { struct max8998_data *max8998 = rdev_get_drvdata(rdev); struct i2c_client *i2c = max8998->iodev->i2c;