mirror-linux/include/linux/iio
Junjie Cao 60ad9a0731 iio: core: switch info_mask fields to unsigned long to match find_bit helpers
for_each_set_bit()/find_*_bit() expect arrays of unsigned long (see
include/linux/find.h), but industrialio-core passed const long * into
iio_device_add_info_mask_type{,_avail}().

These masks are used purely as bit arrays and are populated via BIT()
(1UL << n). Switch the info_mask_* fields and the corresponding function
parameters to unsigned long so the types match the helpers. This removes
sparse warnings about signedness mismatches (seen with 'make C=1'
CF='-Wsparse-all') without changing behavior or struct layout.

No functional change intended.

Suggested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Junjie Cao <junjie.cao@intel.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250820004755.69627-1-junjie.cao@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-08-25 11:07:17 +01:00
..
accel
adc iio: adc: ad_sigma_delta: add SPI offload support 2025-07-13 15:36:25 +01:00
afe
common iio: cros_ec_sensors: add cros_ec_activity driver 2025-06-26 19:32:51 +01:00
dac
frequency
gyro
imu iio: imu: adis: Add DIAG_STAT register 2025-02-22 12:23:49 +00:00
timer iio: trigger: stm32-lptimer: add support for stm32mp25 2025-04-22 19:09:54 +01:00
adc-helpers.h iio: adc: add helpers for parsing ADC nodes 2025-04-22 19:09:52 +01:00
backend.h iio: backend: update iio_backend_oversampling_ratio_set 2025-06-26 19:32:51 +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: add devm_iio_dmaengine_buffer_setup_with_handle() 2025-02-10 18:47:49 +00:00
buffer.h iio: introduced iio_push_to_buffers_with_ts() that takes a data_total_len argument. 2025-05-21 14:20:25 +01:00
buffer_impl.h iio: core: Add new DMABUF interface infrastructure 2024-06-30 11:29:17 +01:00
configfs.h
consumer.h iio: consumers: ensure read buffers for labels and ext_info are page aligned 2024-12-11 19:20:49 +00:00
driver.h iio: adc: Constify struct iio_map 2024-09-30 09:21:02 +01:00
events.h iio: events: make IIO_EVENT_CODE macro private 2024-11-03 20:33:45 +00:00
hw-consumer.h
iio-gts-helper.h iio: gts-helper: export iio_gts_get_total_gain() 2025-02-08 15:16:29 +00:00
iio-opaque.h iio: core: fix doc reference to iio_push_to_buffers_with_ts_unaligned 2024-12-07 17:52:44 +00:00
iio.h iio: core: switch info_mask fields to unsigned long to match find_bit helpers 2025-08-25 11:07:17 +01:00
kfifo_buf.h
machine.h
sw_device.h
sw_trigger.h
sysfs.h
trigger.h
trigger_consumer.h
triggered_buffer.h
triggered_event.h
types.h iio: core: add ADC delay calibration definition 2025-06-09 07:45:37 +01:00