Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: da9055: declare return type of inline function exclusively

da9055_regulator_dt_init does not declare return type and it cause
following build warning.

drivers/regulator/da9055-regulator.c:582:15: warning:
return type defaults to ‘int’ [-Wreturn-type]
static inline da9055_regulator_dt_init(struct platform_device *pdev,
^

Fix the warning by declare return type as int exclusively.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

SeongJae Park and committed by
Mark Brown
dae6cdb4 8b61a28d

+1 -1
+1 -1
drivers/regulator/da9055-regulator.c
··· 579 579 return 0; 580 580 } 581 581 #else 582 - static inline da9055_regulator_dt_init(struct platform_device *pdev, 582 + static inline int da9055_regulator_dt_init(struct platform_device *pdev, 583 583 struct da9055_regulator *regulator, 584 584 struct regulator_config *config, 585 585 int regid)