Skip to content

Commit 27315cf

Browse files
broonieLiam Girdwood
authored andcommitted
regulator: Staticise non-exported functions in mc13892
No point exposing functions that aren't used elsewhere to the global namespace and sparse warns about doing so. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
1 parent ded06a5 commit 27315cf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/regulator/mc13892-regulator.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ static struct mc13xxx_regulator mc13892_regulators[] = {
295295
MC13892_GPO_DEFINE(PWGT2SPI, POWERMISC, mc13892_pwgtdrv),
296296
};
297297

298-
int mc13892_powermisc_rmw(struct mc13xxx_regulator_priv *priv, u32 mask,
299-
u32 val)
298+
static int mc13892_powermisc_rmw(struct mc13xxx_regulator_priv *priv, u32 mask,
299+
u32 val)
300300
{
301301
struct mc13xxx *mc13892 = priv->mc13xxx;
302302
int ret;
@@ -496,7 +496,7 @@ static int mc13892_vcam_set_mode(struct regulator_dev *rdev, unsigned int mode)
496496
return ret;
497497
}
498498

499-
unsigned int mc13892_vcam_get_mode(struct regulator_dev *rdev)
499+
static unsigned int mc13892_vcam_get_mode(struct regulator_dev *rdev)
500500
{
501501
struct mc13xxx_regulator_priv *priv = rdev_get_drvdata(rdev);
502502
int ret, id = rdev_get_id(rdev);

0 commit comments

Comments
 (0)