linux/drivers/iio/buffer
Nuno Sá 9a2e1233d3 iio: buffer: hw-consumer: remove redundant scan_mask flexible array
The scan_mask flexible array member in hw_consumer_buffer duplicates
the scan_mask pointer already present in struct iio_buffer. Remove it
and allocate the bitmap directly with bitmap_zalloc(), assigning it to
buf->buffer.scan_mask. This simplifies the code and there's no need for
the flex array allocation.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2026-03-14 12:10:21 +00:00
..
industrialio-buffer-cb.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
industrialio-buffer-dma.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
industrialio-buffer-dmaengine.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
industrialio-hw-consumer.c iio: buffer: hw-consumer: remove redundant scan_mask flexible array 2026-03-14 12:10:21 +00:00
industrialio-triggered-buffer.c iio: buffer: Fix checkpatch.pl warning 2025-06-09 07:45:35 +01:00
Kconfig iio: buffer: Kconfig: add title for IIO_TRIGGERED_BUFFER symbol 2020-09-29 17:27:08 +01:00
kfifo_buf.c iio: core: Simplify IIO core managed APIs 2026-02-23 21:00:47 +00:00
Makefile iio: Add hardware consumer buffer support 2018-01-10 10:30:05 +00:00