linux-stable/drivers/iio/common
Miquel Raynal 2da03b432d iio: st_sensors: Use iio_device_claim/release_direct_mode() when relevant
The st_sensors_core driver hardcodes the content of the
iio_device_claim_direct_mode() and iio_device_release_direct_mode()
helpers. Let's get rid of this handcrafted implementation and use the
proper core helpers instead. Additionally, this lowers the tab level
(which is always good) and prevents the use of the ->currentmode
variable which is not supposed to be used like this anyway.

Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220207143840.707510-9-miquel.raynal@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-04-10 16:21:45 +01:00
..
cros_ec_sensors iio: common: cros_ec_sensors: simplify getting .driver_data 2021-09-27 09:18:01 +02:00
hid-sensors iio: triggered-buffer: extend support to configure output buffers 2021-10-19 08:30:45 +01:00
ms_sensors iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00
scmi_sensors iio/scmi: Add reading "raw" attribute. 2021-11-17 17:51:35 +00:00
ssp_sensors iio: ssp_sensors: replace usage of found with dedicated list iterator variable 2022-04-04 09:11:25 +01:00
st_sensors iio: st_sensors: Use iio_device_claim/release_direct_mode() when relevant 2022-04-10 16:21:45 +01:00
Kconfig iio/scmi: Adding support for IIO SCMI Based Sensors 2021-03-13 16:43:04 +00:00
Makefile iio/scmi: Adding support for IIO SCMI Based Sensors 2021-03-13 16:43:04 +00:00