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

Commit 08aed2f6 authored by Mark Brown's avatar Mark Brown
Browse files

regulator: stubs: Make stub regulator_get_voltage() return an error



Returning 0 isn't useful, it's not even meaningful if there is a real
regulator there.

Reported-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 230a5a1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ static inline int regulator_set_voltage(struct regulator *regulator,

static inline int regulator_get_voltage(struct regulator *regulator)
{
	return 0;
	return -EINVAL;
}

static inline int regulator_set_current_limit(struct regulator *regulator,