forked from Minki/linux
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>
This commit is contained in:
parent
1b5b422164
commit
30103b5b64
@ -498,7 +498,8 @@ static inline unsigned int regulator_get_mode(struct regulator *regulator)
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user