linux-stable/drivers/iio/common
Miquel Raynal 05a32f1aeb iio: st_sensors: Drop the protection on _avail functions
The use of a lock there seems pointless. Besides preventing to read
these information from userspace while buffers are enabled (which is not
supposed to happen), it only protect read accesses over static const
values, which are never supposed to be written anyway.

Drop these lock calls.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220207143840.707510-6-miquel.raynal@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-04-10 16:15:02 +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: Drop the protection on _avail functions 2022-04-10 16:15:02 +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