iio:accel: preenable/postenable/predisable fixup for ST accel buffer
authorDenis Ciocca <denis.ciocca@st.com>
Wed, 31 Jul 2019 21:48:57 +0000 (14:48 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 5 Aug 2019 14:40:13 +0000 (15:40 +0100)
commitd4e851983beec3c2c9f20f8be8d819ba4fcf3489
tree5988586ecd15f69939e45ac4f05897335486ef28
parent5a57a9bf52b0ab3fca3e14265b98c8051b288e1b
iio:accel: preenable/postenable/predisable fixup for ST accel buffer

This patch is trying to cleanup for good the buffers operation functions.
There is no need of using preenable, all can be done into
postenable.
Let's also rename the goto label using operation to perform and not
where it fails.

Note, not stable material. This is cleaning up the logic flow rather
than fixing a bug.

Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/st_accel_buffer.c