linux/drivers/iio
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
..
accel iio: accel: kxcjk-1013: only set power state if CONFIG_PM is defined 2014-12-12 12:28:27 +00:00
adc iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
amplifiers
common iio: common: remove unnecessary sizeof(u8) 2014-12-12 12:28:25 +00:00
dac iio: add support of the max5821 2014-07-27 14:21:35 +01:00
frequency Merge 3.12-rc6 into staging-next. 2013-10-19 13:14:34 -07:00
gyro First round of new drivers, features and cleanups for IIO in the 3.19 cycle. 2014-11-05 11:42:48 -08:00
humidity iio:humidity:si7020: fix pointer to i2c client 2014-10-25 20:55:56 +01:00
imu iio: imu: inv_mpu6050: Add i2c mux for by pass 2014-12-12 12:28:26 +00:00
light iio: jsa1212: Add JSA1212 proximity/ALS sensor 2014-11-08 12:24:50 +00:00
magnetometer iio: ak8975: add ak09911 and ak09912 support 2014-12-12 12:28:20 +00:00
orientation iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
pressure iio: bmp280: refactor compensation code 2014-12-12 12:28:25 +00:00
proximity iio: as3935: Remove unnecessary semicolons 2014-11-05 13:47:42 +00:00
temperature iio: Add Melexis mlx90614 contact-less infrared temperature sensor driver 2014-05-03 11:38:13 +01:00
trigger iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
buffer_cb.c iio get rid of unneccessary error_ret 2014-02-18 08:46:36 +00:00
iio_core_trigger.h
iio_core.h iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
industrialio-buffer.c iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
industrialio-core.c iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
industrialio-event.c iio: core: Introduce STEPS channel, ENABLE mask and INSTANCE event 2014-11-22 11:05:51 +00:00
industrialio-trigger.c iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
industrialio-triggered-buffer.c iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
inkern.c iio: inkern: add iio_write_channel_raw 2014-12-12 12:28:27 +00:00
Kconfig iio: always select ANON_INODES 2014-05-10 11:39:57 +01:00
kfifo_buf.c iio: kfifo_buf: Implement data_available() callback 2013-12-03 20:22:28 +00:00
Makefile iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00