浏览代码

regulator: Fix regulator_get_error_flags() signature mismatch

The function signature of does not match regulator_get_error_flags()
when CONFIG_REGULATOR is not defined vs. when it is not defined.
This makes both declarations match to prevent compiler errors.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
David Lechner 8 年之前
父节点
当前提交
30103b5b64
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      include/linux/regulator/consumer.h

+ 2 - 1
include/linux/regulator/consumer.h

@@ -498,7 +498,8 @@ static inline unsigned int regulator_get_mode(struct regulator *regulator)
 	return REGULATOR_MODE_NORMAL;
 	return REGULATOR_MODE_NORMAL;
 }
 }
 
 
-static inline int regulator_get_error_flags(struct regulator *regulator)
+static inline int regulator_get_error_flags(struct regulator *regulator,
+					    unsigned int *flags)
 {
 {
 	return -EINVAL;
 	return -EINVAL;
 }
 }