iio:st_sensors: fix power regulator usage
authorGregor Boirie <gregor.boirie@parrot.com>
Tue, 19 Apr 2016 09:18:40 +0000 (11:18 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 29 May 2016 15:08:10 +0000 (16:08 +0100)
commit14f295c846063c4f1812b09427195cee522aa006
treef989193531eba3ddb8970a5450bf43bd8e638511
parent169a88c1ee19b0734c9703d51a6d8ebe538f5bc3
iio:st_sensors: fix power regulator usage

Ensure failure to enable power regulators is properly handled.

Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/st_accel_core.c
drivers/iio/common/st_sensors/st_sensors_core.c
drivers/iio/gyro/st_gyro_core.c
drivers/iio/magnetometer/st_magn_core.c
drivers/iio/pressure/st_pressure_core.c
include/linux/iio/common/st_sensors.h