mirror-linux/include/linux/iio
Nuno Sa de79583ffe iio: core: add accessors 'masklength'
'masklength' is supposed to be an IIO private member. However, drivers
(often in trigger handlers) need to access it to iterate over the
enabled channels for example (there are other reasons). Hence, a couple
of new accessors are being added:

 * iio_for_each_active_channel() - Iterates over the active channels;
 * iio_get_masklength() - Get length of the channels mask.

The goal of these new accessors is to annotate 'masklength' as private
as soon as all drivers accessing it are converted to use the new
helpers.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com>
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-1-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-07-29 20:31:07 +01:00
..
accel
adc iio: adc: ad_sigma_delta: add disable_one callback 2024-06-25 21:04:32 +01:00
afe
common iio: invensense: fix timestamp glitches when switching frequency 2024-05-03 11:48:56 +01:00
dac
frequency
gyro
imu iio: imu: adis: remove legacy lock helpers 2024-06-25 21:04:50 +01:00
timer
backend.h iio: backend: add API for interface tuning 2024-04-29 20:53:26 +01:00
buffer-dma.h iio: buffer-dma: Enable support for DMABUFs 2024-06-30 11:29:24 +01:00
buffer-dmaengine.h iio: buffer-dmaengine: Support specifying buffer direction 2024-04-20 15:41:14 +01:00
buffer.h
buffer_impl.h iio: core: Add new DMABUF interface infrastructure 2024-06-30 11:29:17 +01:00
configfs.h
consumer.h iio: Add iio_read_channel_label to inkern API 2024-06-28 20:06:56 +01:00
driver.h
events.h
hw-consumer.h
iio-gts-helper.h
iio-opaque.h
iio.h iio: core: add accessors 'masklength' 2024-07-29 20:31:07 +01:00
kfifo_buf.h
machine.h
sw_device.h iio: Remove unused declarations 2023-09-12 10:42:03 +01:00
sw_trigger.h iio: Remove unused declarations 2023-09-12 10:42:03 +01:00
sysfs.h
trigger.h
trigger_consumer.h
triggered_buffer.h
triggered_event.h
types.h iio: core: introduce trough info element for minimum values 2023-12-11 19:37:10 +00:00