linux/drivers/iio
Alexandru Ardelean 97c6d85704 iio: adc: ad7606: rework scale-available to be static
The main driver for this change is the AD7607 part, which has a scale of
"1.220703" for the ±10V range. The AD7607 has a resolution of 14-bits.

So, just adding the scale-available list for that part would require some
quirks to handle just that scale value.
But to do it more neatly, the best approach is to rework the scale
available lists to have the same format as it is returned to userspace.
That way, we can also get rid of the allocation for the 'scale_avail_show'
array.

Signed-off-by: Alexandru Ardelean <aardelean@baylibre.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20241025095939.271811-4-aardelean@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2024-10-28 20:04:10 +00:00
..
accel iio: accel: replace s64 __aligned(8) with aligned_s64 2024-10-28 20:04:10 +00:00
adc iio: adc: ad7606: rework scale-available to be static 2024-10-28 20:04:10 +00:00
addac iio: addac: ad74413r: simplify with cleanup.h 2024-10-21 19:19:25 +01:00
afe iio: afe: rescale: Accept only offset channels 2023-10-17 20:25:32 +01:00
amplifiers IIO: 1st set of fixes for the 6.12 cycle. 2024-10-13 17:23:47 +02:00
buffer Merge 6.11-rc7 into char-misc-next 2024-09-09 08:36:23 +02:00
cdc move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
chemical IIO: 1st set of fixes for the 6.12 cycle. 2024-10-13 17:23:47 +02:00
common Merge 6.12-rc4 into char-misc-next 2024-10-21 08:42:22 +02:00
dac iio: dac: ad8460: add SPI device match table 2024-10-21 19:19:24 +01:00
dummy iio: dummy: iio_simple_dummy_buffer: use iio_for_each_active_channel() 2024-08-03 10:13:39 +01:00
filter drivers: iio: filter: admv8818: add bypass mode 2023-08-08 09:51:06 +01:00
frequency Merge 6.12-rc4 into char-misc-next 2024-10-21 08:42:22 +02:00
gyro iio: gyro: list adis16137 in Kconfig description 2024-10-21 19:19:24 +01:00
health move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
humidity Linux 6.12-rc2 2024-10-12 11:43:29 +01:00
imu iio: imu: bmi270: Provide chip info as configuration structure 2024-10-28 20:04:10 +00:00
light iio: light: Remove "default n" entries 2024-10-28 20:04:10 +00:00
magnetometer iio: magnetometer: bmc150_magn: Drop most likely fake ACPI IDs 2024-10-21 19:19:24 +01:00
multiplexer iio: multiplexer: Remove an unused field in struct mux 2024-05-27 09:48:56 +01:00
orientation iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
position iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
potentiometer iio: potentiometer: max5487: Drop ACPI_PTR() usage 2024-01-23 22:06:55 +00:00
potentiostat iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
pressure iio: pressure: bmp280: Move bmp085 interrupt to new configuration 2024-10-21 19:19:25 +01:00
proximity Merge 6.12-rc4 into char-misc-next 2024-10-21 08:42:22 +02:00
resolver iio: resolver: ad2s1210: add missing select (TRIGGERED_)BUFFER in Kconfig 2024-10-06 16:30:38 +01:00
temperature Linux 6.12-rc2 2024-10-12 11:43:29 +01:00
test iio: test: gts: test available times and gains sorting 2024-05-27 09:48:56 +01:00
trigger iio: Switch back to struct platform_driver::remove() 2024-10-10 19:31:50 +01:00
iio_core_trigger.h iio: core-trigger: make iio_device_register_trigger_consumer() an int return 2021-03-11 20:47:02 +00:00
iio_core.h iio: Add iio_read_channel_label to inkern API 2024-06-28 20:06:56 +01:00
industrialio-acpi.c iio: core: Add iio_read_acpi_mount_matrix() helper function 2024-04-29 20:53:25 +01:00
industrialio-backend.c drivers:iio:Fix the NULL vs IS_ERR() bug for debugfs_create_dir() 2024-08-21 21:32:52 +01:00
industrialio-buffer.c iio: core: annotate masklength as __private 2024-08-03 10:13:43 +01:00
industrialio-configfs.c
industrialio-core.c iio: Fix spelling mistake "avaialable" -> "available" 2024-08-10 11:23:39 +01:00
industrialio-event.c iio: event: use sizeof(*pointer) instead of sizeof(type) 2024-06-13 19:19:23 +01:00
industrialio-gts-helper.c iio: Fix the sorting functionality in iio_gts_build_avail_time_table 2024-05-27 09:48:56 +01:00
industrialio-sw-device.c iio: Don't use bare "unsigned" 2022-07-01 11:19:08 +01:00
industrialio-sw-trigger.c iio: core: Fix entry not deleted when iio_register_sw_trigger_type() fails 2022-11-12 17:53:35 +00:00
industrialio-trigger.c iio: trigger: allow devices to suspend/resume theirs associated trigger 2024-08-10 11:19:36 +01:00
industrialio-triggered-event.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
inkern.c iio: adc: Constify struct iio_map 2024-09-30 09:21:02 +01:00
Kconfig iio: core: Add new DMABUF interface infrastructure 2024-06-30 11:29:17 +01:00
Makefile iio: core: Add iio_read_acpi_mount_matrix() helper function 2024-04-29 20:53:25 +01:00
TODO iio: core: move 'mlock' to 'struct iio_dev_opaque' 2022-11-23 19:44:00 +00:00