Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30103b5b authored by David Lechner's avatar David Lechner Committed by Mark Brown
Browse files

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: default avatarDavid Lechner <david@lechnology.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1b5b4221
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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;
}
}