android_kernel_msm-6.1_noth.../include/linux/iio
Nuno Sá 7bca0af538 iio: core: introduce iio_device_{claim|release}_buffer_mode() APIs
[ Upstream commit 0a8565425afd8ba0e1a0ea73e21da119ee6dacea ]

These APIs are analogous to iio_device_claim_direct_mode() and
iio_device_release_direct_mode() but, as the name suggests, with the
logic flipped. While this looks odd enough, it will have at least two
users (in following changes) and it will be important to move the IIO
mlock to the private struct.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20221012151620.1725215-2-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Stable-dep-of: 7771c8c80d62 ("iio: cros_ec: fix an use-after-free in cros_ec_sensors_push_data()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-25 12:03:09 +02:00
..
accel
adc
afe
common iio: cros: Register FIFO callback after sensor is registered 2022-07-18 18:29:13 +01:00
dac
frequency
gyro
imu iio: adis: add '__adis_enable_irq()' implementation 2022-12-31 13:32:41 +01:00
timer
buffer-dma.h
buffer-dmaengine.h
buffer.h
buffer_impl.h
configfs.h
consumer.h iio: inkern: remove OF dependencies 2022-08-15 22:30:00 +01:00
driver.h
events.h
hw-consumer.h
iio-opaque.h iio: Use per-device lockdep class for mlock 2022-09-05 18:08:42 +01:00
iio.h iio: core: introduce iio_device_{claim|release}_buffer_mode() APIs 2023-10-25 12:03:09 +02:00
kfifo_buf.h
machine.h
sw_device.h
sw_trigger.h
sysfs.h
trigger.h iio: trigger: move trig->owner init to trigger allocate() stage 2022-07-16 16:24:19 +01:00
trigger_consumer.h
triggered_buffer.h
triggered_event.h
types.h iio: Add new event type gesture and use direction for single and double tap 2022-09-05 18:08:42 +01:00