]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max8998: Staticify internal function max8998_get_current_limit()
authorLee Jones <lee.jones@linaro.org>
Fri, 26 Jun 2020 06:57:30 +0000 (07:57 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jun 2020 14:34:18 +0000 (15:34 +0100)
commitd9de08ed35f11962401dd7d1ab2fd9eb77db344f
tree490a8b0acc4906b2aa3e88b76d26b60cdf9e8efc
parentc20f144e22528b6f5d5cf4e8673c78ce5c30c51b
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 <lee.jones@linaro.org>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20200626065738.93412-2-lee.jones@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max8998.c