iio: st_sensors: fix errorcheck for regulators
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 30 Aug 2016 08:18:39 +0000 (10:18 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Sep 2016 16:25:54 +0000 (17:25 +0100)
commit1b246fca4adaa0bf440b604366f2227cc4cde702
tree8a80872c972915cd1ca8d9763af0eec20d307308
parent4075a283ae83f49f923a2a92935aa72be2c1ca85
iio: st_sensors: fix errorcheck for regulators

We were checking the return code of vdd when we should be checking
vdd_io. My mistake, mea culpa.

Cc: Giuseppe BARBA <giuseppe.barba@st.com>
Reported-by: Giuseppe BARBA <giuseppe.barba@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/common/st_sensors/st_sensors_core.c