Skip to contentSkip to conversation

regulator: da9055: declare return type of inline function exclusively

PATCH Applied SeongJae Park 2 participants 2 messages Feb 12, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/regulator/da9055-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/da9055-regulator.c +1 -1
index 3b7a26c..cf74040 100644
@@ -579,7 +579,7 @@ static int da9055_regulator_dt_init(struct platform_device *pdev,
 	return 0;
 }
 #else
-static inline da9055_regulator_dt_init(struct platform_device *pdev,
+static inline int da9055_regulator_dt_init(struct platform_device *pdev,
 				       struct da9055_regulator *regulator,
 				       struct regulator_config *config,
 				       int regid)
Signature · 1 line
1.8.3.2
maintainer Applied
#1 lore raw
Quoted 2 lines · SeongJae Park

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

Applied, thanks.