v2 changes: This second version is necessary in order to fix the possible failure of set_enable (last function of postenable). This series is meant to fix for good the functions listed in subject. In a way, is continuing the task started by Alexandru for accel. Denis Ciocca (4): iio:accel: preenable/postenable/predisable fixup for ST accel buffer iio:gyro: preenable/postenable/predisable fixup for ST gyro buffer iio:magn: preenable/postenable/predisable fixup for ST magn buffer iio:pressure: preenable/postenable/predisable fixup for ST press buffer drivers/iio/accel/st_accel_buffer.c | 45 +++++++++------------ drivers/iio/gyro/st_gyro_buffer.c | 49 +++++++++++------------ drivers/iio/magnetometer/st_magn_buffer.c | 30 +++++++------- drivers/iio/pressure/st_pressure_buffer.c | 38 ++++++++---------- 4 files changed, 77 insertions(+), 85 deletions(-) -- 2.22.0