linux/drivers/iio/adc
Lars-Peter Clausen 3e1b6c95b9 iio: Move buffer registration to the core
Originally device and buffer registration were kept as separate operations
in IIO to allow to register two distinct sets of channels for buffered and
non-buffered operations. This has since already been further restricted and
the channel set registered for the buffer needs to be a subset of the
channel set registered for the device. Additionally the possibility to not
have a raw (or processed) attribute for a channel which was registered for
the device was added a while ago. This means it is possible to not register
any device level attributes for a channel even if it is registered for the
device. Also if a channel's scan_index is set to -1 and the channel is
registered for the buffer it is ignored.

So in summary it means it is possible to register the same channel array for
both the device and the buffer yet still end up with distinctive sets of
channels for both of them. This makes the argument for having to have to
manually register the channels for both the device and the buffer invalid.
Considering that the vast majority of all drivers want to register the same
set of channels for both the buffer and the device it makes sense to move
the buffer registration into the core to avoid some boiler-plate code in the
device driver setup path.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-12-12 12:28:31 +00:00
..
ad799x.c iio:adc:ad799x: Allow writing of event config 2014-07-13 21:59:40 +01:00
ad7266.c iio:ad7266: Mark transfer buffer as __be16 2013-12-03 20:22:27 +00:00
ad7291.c 3rd round of IIO new drivers, cleanups and functionality for the 3.17 cycle. 2014-07-13 12:31:47 -07:00
ad7298.c iio:adc:ad7298: Use BIT() and GENMASK() macros 2014-06-14 16:04:24 +01:00
ad7476.c iio:adc:ad7476: Use GENMASK() macro 2014-06-14 16:03:48 +01:00
ad7791.c iio:ad7791: Report scale as fractional value 2013-10-01 16:19:12 +01:00
ad7793.c
ad7887.c iio:adc:ad7887: Use BIT() and GENMASK() macros 2014-06-14 16:03:19 +01:00
ad7923.c iio:ad7923: Use iio_push_to_buffers_with_timestamp() 2013-09-21 19:23:53 +01:00
ad_sigma_delta.c iio: adc: ad_sigma_delta: Fix indio_dev->trig assignment 2014-08-25 21:48:29 +01:00
at91_adc.c Merge 3.17-rc6 into staging-next. 2014-09-22 07:30:03 -07:00
exynos_adc.c iio: adc: exynos_adc: Add support for exynos7 2014-11-05 15:38:25 +00:00
Kconfig iio: iadc: Qualcomm SPMI PMIC current ADC driver 2014-10-25 21:03:22 +01:00
lp8788_adc.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
Makefile iio: iadc: Qualcomm SPMI PMIC current ADC driver 2014-10-25 21:03:22 +01:00
max1027.c iio: add support of the max1027 2014-06-28 09:54:14 +01:00
max1363.c iio:adc:max1363 incorrect resolutions for max11604, max11605, max11610 and max11611. 2014-05-25 12:06:25 +01:00
mcp320x.c iio: adc: mcp320x. Add support for more ADCs 2014-10-09 20:14:03 +01:00
mcp3422.c Add support for Microchip Technology's MCP3426/7/8 ADC 2014-03-16 18:00:34 +00:00
men_z188_adc.c iio: adc: checking for NULL instead of IS_ERR() in probe 2014-06-14 16:16:43 +01:00
nau7802.c tree-wide: use reinit_completion instead of INIT_COMPLETION 2013-11-15 09:32:21 +09:00
qcom-spmi-iadc.c iio: iadc: Qualcomm SPMI PMIC current ADC driver 2014-10-25 21:03:22 +01:00
rockchip_saradc.c iio: adc: rockchip_saradc: add support for rk3066-tsadc variant 2014-09-21 13:39:36 +01:00
ti-adc081c.c iio: adc: ti-adc081c: Include linux/of.h header 2013-10-18 20:05:56 +01:00
ti-adc128s052.c iio: adc: Add TI ADC128S052 2014-08-07 14:43:25 +01:00
ti_am335x_adc.c iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
twl4030-madc.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
twl6030-gpadc.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
vf610_adc.c iio: adc: vf610: Propagate the real error when platform_get_irq() fails 2014-10-22 20:28:11 +01:00
viperboard_adc.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
xilinx-xadc-core.c Merge 3.17-rc6 into staging-next. 2014-09-22 07:30:03 -07:00
xilinx-xadc-events.c iio: xilinx-xadc: Remove unused variable 2014-07-03 22:00:40 +01:00
xilinx-xadc.h iio:adc: Add Xilinx XADC driver 2014-03-01 21:04:29 +00:00