mfd: Return an error on failed wm831x register writes
Got dropped in the regmap conversion. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
f577234570
commit
5391b5c645
|
@ -559,6 +559,8 @@ static int wm831x_write(struct wm831x *wm831x, unsigned short reg,
|
||||||
dev_vdbg(wm831x->dev, "Write %04x to R%d(0x%x)\n",
|
dev_vdbg(wm831x->dev, "Write %04x to R%d(0x%x)\n",
|
||||||
buf[i], reg + i, reg + i);
|
buf[i], reg + i, reg + i);
|
||||||
ret = regmap_write(wm831x->regmap, reg + i, buf[i]);
|
ret = regmap_write(wm831x->regmap, reg + i, buf[i]);
|
||||||
|
if (ret != 0)
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue