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

Commit 6f17c652 authored by Roel Kluin's avatar Roel Kluin Committed by Liam Girdwood
Browse files

regulator: wm831x_reg_read() failure unnoticed in wm831x_aldo_get_mode()



ret should be signed to notice a failure in wm831x_reg_read().

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent cf9836f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -470,7 +470,7 @@ static unsigned int wm831x_aldo_get_mode(struct regulator_dev *rdev)
	struct wm831x_ldo *ldo = rdev_get_drvdata(rdev);
	struct wm831x *wm831x = ldo->wm831x;
	int on_reg = ldo->base + WM831X_LDO_ON_CONTROL;
	unsigned int ret;
	int ret;

	ret = wm831x_reg_read(wm831x, on_reg);
	if (ret < 0)