Skip to content

Commit

Permalink
regulator: Fix regulator_get_error_flags() signature mismatch
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
dlech authored and broonie committed Dec 5, 2016
1 parent 1b5b422 commit 30103b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/regulator/consumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 30103b5

Please sign in to comment.