Commit f2a96245 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER

Functionality is generic, so name is missleading.
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ec3afa40
...@@ -12,13 +12,13 @@ menuconfig IIO ...@@ -12,13 +12,13 @@ menuconfig IIO
drivers/staging/iio/Documentation for more information. drivers/staging/iio/Documentation for more information.
if IIO if IIO
config IIO_RING_BUFFER config IIO_BUFFER
bool "Enable buffer support within IIO" bool "Enable buffer support within IIO"
help help
Provide core support for various buffer based data Provide core support for various buffer based data
acquisition methods. acquisition methods.
if IIO_RING_BUFFER if IIO_BUFFER
config IIO_SW_RING config IIO_SW_RING
select IIO_TRIGGER select IIO_TRIGGER
...@@ -38,7 +38,7 @@ config IIO_KFIFO_BUF ...@@ -38,7 +38,7 @@ config IIO_KFIFO_BUF
no buffer events so it is up to userspace to work out how no buffer events so it is up to userspace to work out how
often to read from the buffer. often to read from the buffer.
endif # IIO_RINGBUFFER endif # IIO_BUFFER
config IIO_TRIGGER config IIO_TRIGGER
boolean "Enable triggered sampling support" boolean "Enable triggered sampling support"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
obj-$(CONFIG_IIO) += industrialio.o obj-$(CONFIG_IIO) += industrialio.o
industrialio-y := industrialio-core.o industrialio-y := industrialio-core.o
industrialio-$(CONFIG_IIO_RING_BUFFER) += industrialio-ring.o industrialio-$(CONFIG_IIO_BUFFER) += industrialio-ring.o
industrialio-$(CONFIG_IIO_TRIGGER) += industrialio-trigger.o industrialio-$(CONFIG_IIO_TRIGGER) += industrialio-trigger.o
obj-$(CONFIG_IIO_SW_RING) += ring_sw.o obj-$(CONFIG_IIO_SW_RING) += ring_sw.o
......
...@@ -6,8 +6,8 @@ menu "Accelerometers" ...@@ -6,8 +6,8 @@ menu "Accelerometers"
config ADIS16201 config ADIS16201
tristate "Analog Devices ADIS16201 Dual-Axis Digital Inclinometer and Accelerometer" tristate "Analog Devices ADIS16201 Dual-Axis Digital Inclinometer and Accelerometer"
depends on SPI depends on SPI
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
select IIO_SW_RING if IIO_RING_BUFFER select IIO_SW_RING if IIO_BUFFER
help help
Say yes here to build support for Analog Devices adis16201 dual-axis Say yes here to build support for Analog Devices adis16201 dual-axis
digital inclinometer and accelerometer. digital inclinometer and accelerometer.
...@@ -15,8 +15,8 @@ config ADIS16201 ...@@ -15,8 +15,8 @@ config ADIS16201
config ADIS16203 config ADIS16203
tristate "Analog Devices ADIS16203 Programmable 360 Degrees Inclinometer" tristate "Analog Devices ADIS16203 Programmable 360 Degrees Inclinometer"
depends on SPI depends on SPI
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
select IIO_SW_RING if IIO_RING_BUFFER select IIO_SW_RING if IIO_BUFFER
help help
Say yes here to build support for Analog Devices adis16203 Programmable Say yes here to build support for Analog Devices adis16203 Programmable
360 Degrees Inclinometer. 360 Degrees Inclinometer.
...@@ -24,8 +24,8 @@ config ADIS16203 ...@@ -24,8 +24,8 @@ config ADIS16203
config ADIS16204 config ADIS16204
tristate "Analog Devices ADIS16204 Programmable High-g Digital Impact Sensor and Recorder" tristate "Analog Devices ADIS16204 Programmable High-g Digital Impact Sensor and Recorder"
depends on SPI depends on SPI
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
select IIO_SW_RING if IIO_RING_BUFFER select IIO_SW_RING if IIO_BUFFER
help help
Say yes here to build support for Analog Devices adis16204 Programmable Say yes here to build support for Analog Devices adis16204 Programmable
High-g Digital Impact Sensor and Recorder. High-g Digital Impact Sensor and Recorder.
...@@ -33,8 +33,8 @@ config ADIS16204 ...@@ -33,8 +33,8 @@ config ADIS16204
config ADIS16209 config ADIS16209
tristate "Analog Devices ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer" tristate "Analog Devices ADIS16209 Dual-Axis Digital Inclinometer and Accelerometer"
depends on SPI depends on SPI
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
select IIO_SW_RING if IIO_RING_BUFFER select IIO_SW_RING if IIO_BUFFER
help help
Say yes here to build support for Analog Devices adis16209 dual-axis digital inclinometer Say yes here to build support for Analog Devices adis16209 dual-axis digital inclinometer
and accelerometer. and accelerometer.
...@@ -49,8 +49,8 @@ config ADIS16220 ...@@ -49,8 +49,8 @@ config ADIS16220
config ADIS16240 config ADIS16240
tristate "Analog Devices ADIS16240 Programmable Impact Sensor and Recorder" tristate "Analog Devices ADIS16240 Programmable Impact Sensor and Recorder"
depends on SPI depends on SPI
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
select IIO_SW_RING if IIO_RING_BUFFER select IIO_SW_RING if IIO_BUFFER
help help
Say yes here to build support for Analog Devices adis16240 programmable Say yes here to build support for Analog Devices adis16240 programmable
impact Sensor and recorder. impact Sensor and recorder.
...@@ -65,8 +65,8 @@ config KXSD9 ...@@ -65,8 +65,8 @@ config KXSD9
config LIS3L02DQ config LIS3L02DQ
tristate "ST Microelectronics LIS3L02DQ Accelerometer Driver" tristate "ST Microelectronics LIS3L02DQ Accelerometer Driver"
depends on SPI depends on SPI
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
depends on !IIO_RING_BUFFER || IIO_KFIFO_BUF || IIO_SW_RING depends on !IIO_BUFFER || IIO_KFIFO_BUF || IIO_SW_RING
help help
Say yes here to build SPI support for the ST microelectronics Say yes here to build SPI support for the ST microelectronics
accelerometer. The driver supplies direct access via sysfs files accelerometer. The driver supplies direct access via sysfs files
...@@ -74,7 +74,7 @@ config LIS3L02DQ ...@@ -74,7 +74,7 @@ config LIS3L02DQ
choice choice
prompt "Buffer type" prompt "Buffer type"
depends on LIS3L02DQ && IIO_RING_BUFFER depends on LIS3L02DQ && IIO_BUFFER
config LIS3L02DQ_BUF_KFIFO config LIS3L02DQ_BUF_KFIFO
depends on IIO_KFIFO_BUF depends on IIO_KFIFO_BUF
...@@ -94,7 +94,7 @@ config LIS3L02DQ_BUF_RING_SW ...@@ -94,7 +94,7 @@ config LIS3L02DQ_BUF_RING_SW
endchoice endchoice
config SCA3000 config SCA3000
depends on IIO_RING_BUFFER depends on IIO_BUFFER
depends on SPI depends on SPI
tristate "VTI SCA3000 series accelerometers" tristate "VTI SCA3000 series accelerometers"
help help
......
...@@ -3,32 +3,32 @@ ...@@ -3,32 +3,32 @@
# #
adis16201-y := adis16201_core.o adis16201-y := adis16201_core.o
adis16201-$(CONFIG_IIO_RING_BUFFER) += adis16201_ring.o adis16201_trigger.o adis16201-$(CONFIG_IIO_BUFFER) += adis16201_ring.o adis16201_trigger.o
obj-$(CONFIG_ADIS16201) += adis16201.o obj-$(CONFIG_ADIS16201) += adis16201.o
adis16203-y := adis16203_core.o adis16203-y := adis16203_core.o
adis16203-$(CONFIG_IIO_RING_BUFFER) += adis16203_ring.o adis16203_trigger.o adis16203-$(CONFIG_IIO_BUFFER) += adis16203_ring.o adis16203_trigger.o
obj-$(CONFIG_ADIS16203) += adis16203.o obj-$(CONFIG_ADIS16203) += adis16203.o
adis16204-y := adis16204_core.o adis16204-y := adis16204_core.o
adis16204-$(CONFIG_IIO_RING_BUFFER) += adis16204_ring.o adis16204_trigger.o adis16204-$(CONFIG_IIO_BUFFER) += adis16204_ring.o adis16204_trigger.o
obj-$(CONFIG_ADIS16204) += adis16204.o obj-$(CONFIG_ADIS16204) += adis16204.o
adis16209-y := adis16209_core.o adis16209-y := adis16209_core.o
adis16209-$(CONFIG_IIO_RING_BUFFER) += adis16209_ring.o adis16209_trigger.o adis16209-$(CONFIG_IIO_BUFFER) += adis16209_ring.o adis16209_trigger.o
obj-$(CONFIG_ADIS16209) += adis16209.o obj-$(CONFIG_ADIS16209) += adis16209.o
adis16220-y := adis16220_core.o adis16220-y := adis16220_core.o
obj-$(CONFIG_ADIS16220) += adis16220.o obj-$(CONFIG_ADIS16220) += adis16220.o
adis16240-y := adis16240_core.o adis16240-y := adis16240_core.o
adis16240-$(CONFIG_IIO_RING_BUFFER) += adis16240_ring.o adis16240_trigger.o adis16240-$(CONFIG_IIO_BUFFER) += adis16240_ring.o adis16240_trigger.o
obj-$(CONFIG_ADIS16240) += adis16240.o obj-$(CONFIG_ADIS16240) += adis16240.o
obj-$(CONFIG_KXSD9) += kxsd9.o obj-$(CONFIG_KXSD9) += kxsd9.o
lis3l02dq-y := lis3l02dq_core.o lis3l02dq-y := lis3l02dq_core.o
lis3l02dq-$(CONFIG_IIO_RING_BUFFER) += lis3l02dq_ring.o lis3l02dq-$(CONFIG_IIO_BUFFER) += lis3l02dq_ring.o
obj-$(CONFIG_LIS3L02DQ) += lis3l02dq.o obj-$(CONFIG_LIS3L02DQ) += lis3l02dq.o
sca3000-y := sca3000_core.o sca3000_ring.o sca3000-y := sca3000_core.o sca3000_ring.o
......
...@@ -89,7 +89,7 @@ enum adis16201_scan { ...@@ -89,7 +89,7 @@ enum adis16201_scan {
ADIS16201_SCAN_INCLI_Y, ADIS16201_SCAN_INCLI_Y,
}; };
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
void adis16201_remove_trigger(struct iio_dev *indio_dev); void adis16201_remove_trigger(struct iio_dev *indio_dev);
int adis16201_probe_trigger(struct iio_dev *indio_dev); int adis16201_probe_trigger(struct iio_dev *indio_dev);
...@@ -100,7 +100,7 @@ ssize_t adis16201_read_data_from_ring(struct device *dev, ...@@ -100,7 +100,7 @@ ssize_t adis16201_read_data_from_ring(struct device *dev,
int adis16201_configure_ring(struct iio_dev *indio_dev); int adis16201_configure_ring(struct iio_dev *indio_dev);
void adis16201_unconfigure_ring(struct iio_dev *indio_dev); void adis16201_unconfigure_ring(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline void adis16201_remove_trigger(struct iio_dev *indio_dev) static inline void adis16201_remove_trigger(struct iio_dev *indio_dev)
{ {
...@@ -137,5 +137,5 @@ static inline void adis16201_uninitialize_ring(struct iio_ring_buffer *ring) ...@@ -137,5 +137,5 @@ static inline void adis16201_uninitialize_ring(struct iio_ring_buffer *ring)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* SPI_ADIS16201_H_ */ #endif /* SPI_ADIS16201_H_ */
...@@ -82,7 +82,7 @@ enum adis16203_scan { ...@@ -82,7 +82,7 @@ enum adis16203_scan {
ADIS16203_SCAN_INCLI_Y, ADIS16203_SCAN_INCLI_Y,
}; };
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
void adis16203_remove_trigger(struct iio_dev *indio_dev); void adis16203_remove_trigger(struct iio_dev *indio_dev);
int adis16203_probe_trigger(struct iio_dev *indio_dev); int adis16203_probe_trigger(struct iio_dev *indio_dev);
...@@ -93,7 +93,7 @@ ssize_t adis16203_read_data_from_ring(struct device *dev, ...@@ -93,7 +93,7 @@ ssize_t adis16203_read_data_from_ring(struct device *dev,
int adis16203_configure_ring(struct iio_dev *indio_dev); int adis16203_configure_ring(struct iio_dev *indio_dev);
void adis16203_unconfigure_ring(struct iio_dev *indio_dev); void adis16203_unconfigure_ring(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline void adis16203_remove_trigger(struct iio_dev *indio_dev) static inline void adis16203_remove_trigger(struct iio_dev *indio_dev)
{ {
...@@ -121,5 +121,5 @@ static inline void adis16203_unconfigure_ring(struct iio_dev *indio_dev) ...@@ -121,5 +121,5 @@ static inline void adis16203_unconfigure_ring(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* SPI_ADIS16203_H_ */ #endif /* SPI_ADIS16203_H_ */
...@@ -90,7 +90,7 @@ enum adis16204_scan { ...@@ -90,7 +90,7 @@ enum adis16204_scan {
ADIS16204_SCAN_TEMP, ADIS16204_SCAN_TEMP,
}; };
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
void adis16204_remove_trigger(struct iio_dev *indio_dev); void adis16204_remove_trigger(struct iio_dev *indio_dev);
int adis16204_probe_trigger(struct iio_dev *indio_dev); int adis16204_probe_trigger(struct iio_dev *indio_dev);
...@@ -101,7 +101,7 @@ ssize_t adis16204_read_data_from_ring(struct device *dev, ...@@ -101,7 +101,7 @@ ssize_t adis16204_read_data_from_ring(struct device *dev,
int adis16204_configure_ring(struct iio_dev *indio_dev); int adis16204_configure_ring(struct iio_dev *indio_dev);
void adis16204_unconfigure_ring(struct iio_dev *indio_dev); void adis16204_unconfigure_ring(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline void adis16204_remove_trigger(struct iio_dev *indio_dev) static inline void adis16204_remove_trigger(struct iio_dev *indio_dev)
{ {
...@@ -129,5 +129,5 @@ static inline void adis16204_unconfigure_ring(struct iio_dev *indio_dev) ...@@ -129,5 +129,5 @@ static inline void adis16204_unconfigure_ring(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* SPI_ADIS16204_H_ */ #endif /* SPI_ADIS16204_H_ */
...@@ -128,7 +128,7 @@ int adis16209_set_irq(struct iio_dev *indio_dev, bool enable); ...@@ -128,7 +128,7 @@ int adis16209_set_irq(struct iio_dev *indio_dev, bool enable);
#define ADIS16209_SCAN_INCLI_Y 6 #define ADIS16209_SCAN_INCLI_Y 6
#define ADIS16209_SCAN_ROT 7 #define ADIS16209_SCAN_ROT 7
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
void adis16209_remove_trigger(struct iio_dev *indio_dev); void adis16209_remove_trigger(struct iio_dev *indio_dev);
int adis16209_probe_trigger(struct iio_dev *indio_dev); int adis16209_probe_trigger(struct iio_dev *indio_dev);
...@@ -140,7 +140,7 @@ ssize_t adis16209_read_data_from_ring(struct device *dev, ...@@ -140,7 +140,7 @@ ssize_t adis16209_read_data_from_ring(struct device *dev,
int adis16209_configure_ring(struct iio_dev *indio_dev); int adis16209_configure_ring(struct iio_dev *indio_dev);
void adis16209_unconfigure_ring(struct iio_dev *indio_dev); void adis16209_unconfigure_ring(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline void adis16209_remove_trigger(struct iio_dev *indio_dev) static inline void adis16209_remove_trigger(struct iio_dev *indio_dev)
{ {
...@@ -168,5 +168,5 @@ static inline void adis16209_unconfigure_ring(struct iio_dev *indio_dev) ...@@ -168,5 +168,5 @@ static inline void adis16209_unconfigure_ring(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* SPI_ADIS16209_H_ */ #endif /* SPI_ADIS16209_H_ */
...@@ -152,7 +152,7 @@ int adis16240_set_irq(struct iio_dev *indio_dev, bool enable); ...@@ -152,7 +152,7 @@ int adis16240_set_irq(struct iio_dev *indio_dev, bool enable);
#define ADIS16240_SCAN_AUX_ADC 4 #define ADIS16240_SCAN_AUX_ADC 4
#define ADIS16240_SCAN_TEMP 5 #define ADIS16240_SCAN_TEMP 5
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
void adis16240_remove_trigger(struct iio_dev *indio_dev); void adis16240_remove_trigger(struct iio_dev *indio_dev);
int adis16240_probe_trigger(struct iio_dev *indio_dev); int adis16240_probe_trigger(struct iio_dev *indio_dev);
...@@ -164,7 +164,7 @@ ssize_t adis16240_read_data_from_ring(struct device *dev, ...@@ -164,7 +164,7 @@ ssize_t adis16240_read_data_from_ring(struct device *dev,
int adis16240_configure_ring(struct iio_dev *indio_dev); int adis16240_configure_ring(struct iio_dev *indio_dev);
void adis16240_unconfigure_ring(struct iio_dev *indio_dev); void adis16240_unconfigure_ring(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline void adis16240_remove_trigger(struct iio_dev *indio_dev) static inline void adis16240_remove_trigger(struct iio_dev *indio_dev)
{ {
...@@ -192,5 +192,5 @@ static inline void adis16240_unconfigure_ring(struct iio_dev *indio_dev) ...@@ -192,5 +192,5 @@ static inline void adis16240_unconfigure_ring(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* SPI_ADIS16240_H_ */ #endif /* SPI_ADIS16240_H_ */
...@@ -174,7 +174,7 @@ int lis3l02dq_spi_write_reg_8(struct iio_dev *indio_dev, ...@@ -174,7 +174,7 @@ int lis3l02dq_spi_write_reg_8(struct iio_dev *indio_dev,
int lis3l02dq_disable_all_events(struct iio_dev *indio_dev); int lis3l02dq_disable_all_events(struct iio_dev *indio_dev);
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
/* At the moment triggers are only used for ring buffer /* At the moment triggers are only used for ring buffer
* filling. This may change! * filling. This may change!
*/ */
...@@ -202,7 +202,7 @@ void lis3l02dq_unconfigure_ring(struct iio_dev *indio_dev); ...@@ -202,7 +202,7 @@ void lis3l02dq_unconfigure_ring(struct iio_dev *indio_dev);
irqreturn_t lis3l02dq_data_rdy_trig_poll(int irq, void *private); irqreturn_t lis3l02dq_data_rdy_trig_poll(int irq, void *private);
#define lis3l02dq_th lis3l02dq_data_rdy_trig_poll #define lis3l02dq_th lis3l02dq_data_rdy_trig_poll
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
#define lis3l02dq_th lis3l02dq_noring #define lis3l02dq_th lis3l02dq_noring
static inline void lis3l02dq_remove_trigger(struct iio_dev *indio_dev) static inline void lis3l02dq_remove_trigger(struct iio_dev *indio_dev)
...@@ -227,5 +227,5 @@ static int lis3l02dq_configure_ring(struct iio_dev *indio_dev) ...@@ -227,5 +227,5 @@ static int lis3l02dq_configure_ring(struct iio_dev *indio_dev)
static inline void lis3l02dq_unconfigure_ring(struct iio_dev *indio_dev) static inline void lis3l02dq_unconfigure_ring(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* SPI_LIS3L02DQ_H_ */ #endif /* SPI_LIS3L02DQ_H_ */
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* This means that use cannot be made of spi_write etc. * This means that use cannot be made of spi_write etc.
*/ */
/* direct copy of the irq_default_primary_handler */ /* direct copy of the irq_default_primary_handler */
#ifndef CONFIG_IIO_RING_BUFFER #ifndef CONFIG_IIO_BUFFER
static irqreturn_t lis3l02dq_noring(int irq, void *private) static irqreturn_t lis3l02dq_noring(int irq, void *private)
{ {
return IRQ_WAKE_THREAD; return IRQ_WAKE_THREAD;
......
...@@ -221,7 +221,7 @@ int sca3000_read_data_short(struct sca3000_state *st, ...@@ -221,7 +221,7 @@ int sca3000_read_data_short(struct sca3000_state *st,
**/ **/
int sca3000_write_reg(struct sca3000_state *st, u8 address, u8 val); int sca3000_write_reg(struct sca3000_state *st, u8 address, u8 val);
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
/** /**
* sca3000_register_ring_funcs() setup the ring state change functions * sca3000_register_ring_funcs() setup the ring state change functions
**/ **/
......
...@@ -44,7 +44,7 @@ config AD7314 ...@@ -44,7 +44,7 @@ config AD7314
config AD7606 config AD7606
tristate "Analog Devices AD7606 ADC driver" tristate "Analog Devices AD7606 ADC driver"
depends on GPIOLIB depends on GPIOLIB
select IIO_RING_BUFFER select IIO_BUFFER
select IIO_TRIGGER select IIO_TRIGGER
select IIO_SW_RING select IIO_SW_RING
help help
...@@ -72,7 +72,7 @@ config AD7606_IFACE_SPI ...@@ -72,7 +72,7 @@ config AD7606_IFACE_SPI
config AD799X config AD799X
tristate "Analog Devices AD799x ADC driver" tristate "Analog Devices AD799x ADC driver"
depends on I2C depends on I2C
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
select AD799X_RING_BUFFER select AD799X_RING_BUFFER
help help
Say yes here to build support for Analog Devices: Say yes here to build support for Analog Devices:
...@@ -83,7 +83,7 @@ config AD799X ...@@ -83,7 +83,7 @@ config AD799X
config AD799X_RING_BUFFER config AD799X_RING_BUFFER
bool "Analog Devices AD799x: use ring buffer" bool "Analog Devices AD799x: use ring buffer"
depends on AD799X depends on AD799X
select IIO_RING_BUFFER select IIO_BUFFER
select IIO_SW_RING select IIO_SW_RING
help help
Say yes here to include ring buffer support in the AD799X Say yes here to include ring buffer support in the AD799X
...@@ -92,7 +92,7 @@ config AD799X_RING_BUFFER ...@@ -92,7 +92,7 @@ config AD799X_RING_BUFFER
config AD7476 config AD7476
tristate "Analog Devices AD7475/6/7/8 AD7466/7/8 and AD7495 ADC driver" tristate "Analog Devices AD7475/6/7/8 AD7466/7/8 and AD7495 ADC driver"
depends on SPI depends on SPI
select IIO_RING_BUFFER select IIO_BUFFER
select IIO_SW_RING select IIO_SW_RING
select IIO_TRIGGER select IIO_TRIGGER
help help
...@@ -107,7 +107,7 @@ config AD7476 ...@@ -107,7 +107,7 @@ config AD7476
config AD7887 config AD7887
tristate "Analog Devices AD7887 ADC driver" tristate "Analog Devices AD7887 ADC driver"
depends on SPI depends on SPI
select IIO_RING_BUFFER select IIO_BUFFER
select IIO_SW_RING select IIO_SW_RING
select IIO_TRIGGER select IIO_TRIGGER
help help
...@@ -133,7 +133,7 @@ config AD7780 ...@@ -133,7 +133,7 @@ config AD7780
config AD7793 config AD7793
tristate "Analog Devices AD7792 AD7793 ADC driver" tristate "Analog Devices AD7792 AD7793 ADC driver"
depends on SPI depends on SPI
select IIO_RING_BUFFER select IIO_BUFFER
select IIO_SW_RING select IIO_SW_RING
select IIO_TRIGGER select IIO_TRIGGER
help help
...@@ -164,7 +164,7 @@ config AD7816 ...@@ -164,7 +164,7 @@ config AD7816
config AD7192 config AD7192
tristate "Analog Devices AD7190 AD7192 AD7195 ADC driver" tristate "Analog Devices AD7190 AD7192 AD7195 ADC driver"
depends on SPI depends on SPI
select IIO_RING_BUFFER select IIO_BUFFER
select IIO_SW_RING select IIO_SW_RING
select IIO_TRIGGER select IIO_TRIGGER
help help
...@@ -209,7 +209,7 @@ config AD7280 ...@@ -209,7 +209,7 @@ config AD7280
config MAX1363 config MAX1363
tristate "Maxim max1363 ADC driver" tristate "Maxim max1363 ADC driver"
depends on I2C depends on I2C
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
select MAX1363_RING_BUFFER select MAX1363_RING_BUFFER
help help
Say yes here to build support for many Maxim i2c analog to digital Say yes here to build support for many Maxim i2c analog to digital
...@@ -224,7 +224,7 @@ config MAX1363 ...@@ -224,7 +224,7 @@ config MAX1363
config MAX1363_RING_BUFFER config MAX1363_RING_BUFFER
bool "Maxim max1363: use ring buffer" bool "Maxim max1363: use ring buffer"
depends on MAX1363 depends on MAX1363
select IIO_RING_BUFFER select IIO_BUFFER
select IIO_SW_RING select IIO_SW_RING
help help
Say yes here to include ring buffer support in the MAX1363 Say yes here to include ring buffer support in the MAX1363
......
...@@ -8,7 +8,7 @@ max1363-y += max1363_ring.o ...@@ -8,7 +8,7 @@ max1363-y += max1363_ring.o
obj-$(CONFIG_MAX1363) += max1363.o obj-$(CONFIG_MAX1363) += max1363.o
ad7606-y := ad7606_core.o ad7606-y := ad7606_core.o
ad7606-$(CONFIG_IIO_RING_BUFFER) += ad7606_ring.o ad7606-$(CONFIG_IIO_BUFFER) += ad7606_ring.o
ad7606-$(CONFIG_AD7606_IFACE_PARALLEL) += ad7606_par.o ad7606-$(CONFIG_AD7606_IFACE_PARALLEL) += ad7606_par.o
ad7606-$(CONFIG_AD7606_IFACE_SPI) += ad7606_spi.o ad7606-$(CONFIG_AD7606_IFACE_SPI) += ad7606_spi.o
obj-$(CONFIG_AD7606) += ad7606.o obj-$(CONFIG_AD7606) += ad7606.o
...@@ -18,15 +18,15 @@ ad799x-$(CONFIG_AD799X_RING_BUFFER) += ad799x_ring.o ...@@ -18,15 +18,15 @@ ad799x-$(CONFIG_AD799X_RING_BUFFER) += ad799x_ring.o
obj-$(CONFIG_AD799X) += ad799x.o obj-$(CONFIG_AD799X) += ad799x.o
ad7476-y := ad7476_core.o ad7476-y := ad7476_core.o
ad7476-$(CONFIG_IIO_RING_BUFFER) += ad7476_ring.o ad7476-$(CONFIG_IIO_BUFFER) += ad7476_ring.o
obj-$(CONFIG_AD7476) += ad7476.o obj-$(CONFIG_AD7476) += ad7476.o
ad7887-y := ad7887_core.o ad7887-y := ad7887_core.o
ad7887-$(CONFIG_IIO_RING_BUFFER) += ad7887_ring.o ad7887-$(CONFIG_IIO_BUFFER) += ad7887_ring.o
obj-$(CONFIG_AD7887) += ad7887.o obj-$(CONFIG_AD7887) += ad7887.o
ad7298-y := ad7298_core.o ad7298-y := ad7298_core.o
ad7298-$(CONFIG_IIO_RING_BUFFER) += ad7298_ring.o ad7298-$(CONFIG_IIO_BUFFER) += ad7298_ring.o
obj-$(CONFIG_AD7298) += ad7298.o obj-$(CONFIG_AD7298) += ad7298.o
obj-$(CONFIG_AD7150) += ad7150.o obj-$(CONFIG_AD7150) += ad7150.o
......
...@@ -53,11 +53,11 @@ struct ad7298_state { ...@@ -53,11 +53,11 @@ struct ad7298_state {
unsigned short tx_buf[2]; unsigned short tx_buf[2];
}; };
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
int ad7298_scan_from_ring(struct iio_dev *indio_dev, long ch); int ad7298_scan_from_ring(struct iio_dev *indio_dev, long ch);
int ad7298_register_ring_funcs_and_init(struct iio_dev *indio_dev); int ad7298_register_ring_funcs_and_init(struct iio_dev *indio_dev);
void ad7298_ring_cleanup(struct iio_dev *indio_dev); void ad7298_ring_cleanup(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline int ad7298_scan_from_ring(struct iio_dev *indio_dev, long ch) static inline int ad7298_scan_from_ring(struct iio_dev *indio_dev, long ch)
{ {
return 0; return 0;
...@@ -72,5 +72,5 @@ ad7298_register_ring_funcs_and_init(struct iio_dev *indio_dev) ...@@ -72,5 +72,5 @@ ad7298_register_ring_funcs_and_init(struct iio_dev *indio_dev)
static inline void ad7298_ring_cleanup(struct iio_dev *indio_dev) static inline void ad7298_ring_cleanup(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* IIO_ADC_AD7298_H_ */ #endif /* IIO_ADC_AD7298_H_ */
...@@ -49,11 +49,11 @@ enum ad7476_supported_device_ids { ...@@ -49,11 +49,11 @@ enum ad7476_supported_device_ids {
ID_AD7495 ID_AD7495
}; };
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
int ad7476_scan_from_ring(struct iio_dev *indio_dev); int ad7476_scan_from_ring(struct iio_dev *indio_dev);
int ad7476_register_ring_funcs_and_init(struct iio_dev *indio_dev); int ad7476_register_ring_funcs_and_init(struct iio_dev *indio_dev);
void ad7476_ring_cleanup(struct iio_dev *indio_dev); void ad7476_ring_cleanup(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline int ad7476_scan_from_ring(struct iio_dev *indio_dev) static inline int ad7476_scan_from_ring(struct iio_dev *indio_dev)
{ {
return 0; return 0;
...@@ -68,5 +68,5 @@ ad7476_register_ring_funcs_and_init(struct iio_dev *indio_dev) ...@@ -68,5 +68,5 @@ ad7476_register_ring_funcs_and_init(struct iio_dev *indio_dev)
static inline void ad7476_ring_cleanup(struct iio_dev *indio_dev) static inline void ad7476_ring_cleanup(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* IIO_ADC_AD7476_H_ */ #endif /* IIO_ADC_AD7476_H_ */
...@@ -82,11 +82,11 @@ enum ad7887_supported_device_ids { ...@@ -82,11 +82,11 @@ enum ad7887_supported_device_ids {
ID_AD7887 ID_AD7887
}; };
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
int ad7887_scan_from_ring(struct ad7887_state *st, int channum); int ad7887_scan_from_ring(struct ad7887_state *st, int channum);
int ad7887_register_ring_funcs_and_init(struct iio_dev *indio_dev); int ad7887_register_ring_funcs_and_init(struct iio_dev *indio_dev);
void ad7887_ring_cleanup(struct iio_dev *indio_dev); void ad7887_ring_cleanup(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline int ad7887_scan_from_ring(struct ad7887_state *st, int channum) static inline int ad7887_scan_from_ring(struct ad7887_state *st, int channum)
{ {
return 0; return 0;
...@@ -101,5 +101,5 @@ ad7887_register_ring_funcs_and_init(struct iio_dev *indio_dev) ...@@ -101,5 +101,5 @@ ad7887_register_ring_funcs_and_init(struct iio_dev *indio_dev)
static inline void ad7887_ring_cleanup(struct iio_dev *indio_dev) static inline void ad7887_ring_cleanup(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* IIO_ADC_AD7887_H_ */ #endif /* IIO_ADC_AD7887_H_ */
...@@ -27,8 +27,8 @@ config ADIS16130 ...@@ -27,8 +27,8 @@ config ADIS16130
config ADIS16260 config ADIS16260
tristate "Analog Devices ADIS16260 Digital Gyroscope Sensor SPI driver" tristate "Analog Devices ADIS16260 Digital Gyroscope Sensor SPI driver"
depends on SPI depends on SPI
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
select IIO_SW_RING if IIO_RING_BUFFER select IIO_SW_RING if IIO_BUFFER
help help
Say yes here to build support for Analog Devices ADIS16260 ADIS16265 Say yes here to build support for Analog Devices ADIS16260 ADIS16265
ADIS16250 ADIS16255 and ADIS16251 programmable digital gyroscope sensors. ADIS16250 ADIS16255 and ADIS16251 programmable digital gyroscope sensors.
......
...@@ -12,7 +12,7 @@ adis16130-y := adis16130_core.o ...@@ -12,7 +12,7 @@ adis16130-y := adis16130_core.o
obj-$(CONFIG_ADIS16130) += adis16130.o obj-$(CONFIG_ADIS16130) += adis16130.o
adis16260-y := adis16260_core.o adis16260-y := adis16260_core.o
adis16260-$(CONFIG_IIO_RING_BUFFER) += adis16260_ring.o adis16260_trigger.o adis16260-$(CONFIG_IIO_BUFFER) += adis16260_ring.o adis16260_trigger.o
obj-$(CONFIG_ADIS16260) += adis16260.o obj-$(CONFIG_ADIS16260) += adis16260.o
adis16251-y := adis16251_core.o adis16251-y := adis16251_core.o
......
...@@ -112,7 +112,7 @@ int adis16260_set_irq(struct iio_dev *indio_dev, bool enable); ...@@ -112,7 +112,7 @@ int adis16260_set_irq(struct iio_dev *indio_dev, bool enable);
#define ADIS16260_SCAN_TEMP 3 #define ADIS16260_SCAN_TEMP 3
#define ADIS16260_SCAN_ANGL 4 #define ADIS16260_SCAN_ANGL 4
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
void adis16260_remove_trigger(struct iio_dev *indio_dev); void adis16260_remove_trigger(struct iio_dev *indio_dev);
int adis16260_probe_trigger(struct iio_dev *indio_dev); int adis16260_probe_trigger(struct iio_dev *indio_dev);
...@@ -124,7 +124,7 @@ ssize_t adis16260_read_data_from_ring(struct device *dev, ...@@ -124,7 +124,7 @@ ssize_t adis16260_read_data_from_ring(struct device *dev,
int adis16260_configure_ring(struct iio_dev *indio_dev); int adis16260_configure_ring(struct iio_dev *indio_dev);
void adis16260_unconfigure_ring(struct iio_dev *indio_dev); void adis16260_unconfigure_ring(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline void adis16260_remove_trigger(struct iio_dev *indio_dev) static inline void adis16260_remove_trigger(struct iio_dev *indio_dev)
{ {
...@@ -152,5 +152,5 @@ static inline void adis16260_unconfigure_ring(struct iio_dev *indio_dev) ...@@ -152,5 +152,5 @@ static inline void adis16260_unconfigure_ring(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* SPI_ADIS16260_H_ */ #endif /* SPI_ADIS16260_H_ */
...@@ -30,7 +30,7 @@ int __iio_add_chan_devattr(const char *postfix, ...@@ -30,7 +30,7 @@ int __iio_add_chan_devattr(const char *postfix,
/* Event interface flags */ /* Event interface flags */
#define IIO_BUSY_BIT_POS 1 #define IIO_BUSY_BIT_POS 1
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
struct poll_table_struct; struct poll_table_struct;
void iio_chrdev_ring_open(struct iio_dev *indio_dev); void iio_chrdev_ring_open(struct iio_dev *indio_dev);
......
...@@ -6,7 +6,7 @@ menu "Network Analyzer, Impedance Converters" ...@@ -6,7 +6,7 @@ menu "Network Analyzer, Impedance Converters"
config AD5933 config AD5933
tristate "Analog Devices AD5933, AD5934 driver" tristate "Analog Devices AD5933, AD5934 driver"
depends on I2C depends on I2C
select IIO_RING_BUFFER select IIO_BUFFER
select IIO_SW_RING select IIO_SW_RING
help help
Say yes here to build support for Analog Devices Impedance Converter, Say yes here to build support for Analog Devices Impedance Converter,
......
...@@ -6,8 +6,8 @@ menu "Inertial measurement units" ...@@ -6,8 +6,8 @@ menu "Inertial measurement units"
config ADIS16400 config ADIS16400
tristate "Analog Devices ADIS16400 and similar IMU SPI driver" tristate "Analog Devices ADIS16400 and similar IMU SPI driver"
depends on SPI depends on SPI
select IIO_SW_RING if IIO_RING_BUFFER select IIO_SW_RING if IIO_BUFFER
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
help help
Say yes here to build support for Analog Devices adis16300, adis16350, Say yes here to build support for Analog Devices adis16300, adis16350,
adis16354, adis16355, adis16360, adis16362, adis16364, adis16365, adis16354, adis16355, adis16360, adis16362, adis16364, adis16365,
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
# #
adis16400-y := adis16400_core.o adis16400-y := adis16400_core.o
adis16400-$(CONFIG_IIO_RING_BUFFER) += adis16400_ring.o adis16400_trigger.o adis16400-$(CONFIG_IIO_BUFFER) += adis16400_ring.o adis16400_trigger.o
obj-$(CONFIG_ADIS16400) += adis16400.o obj-$(CONFIG_ADIS16400) += adis16400.o
...@@ -184,7 +184,7 @@ int adis16400_set_irq(struct iio_dev *indio_dev, bool enable); ...@@ -184,7 +184,7 @@ int adis16400_set_irq(struct iio_dev *indio_dev, bool enable);
#define ADIS16300_SCAN_INCLI_X 12 #define ADIS16300_SCAN_INCLI_X 12
#define ADIS16300_SCAN_INCLI_Y 13 #define ADIS16300_SCAN_INCLI_Y 13
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
void adis16400_remove_trigger(struct iio_dev *indio_dev); void adis16400_remove_trigger(struct iio_dev *indio_dev);
int adis16400_probe_trigger(struct iio_dev *indio_dev); int adis16400_probe_trigger(struct iio_dev *indio_dev);
...@@ -196,7 +196,7 @@ ssize_t adis16400_read_data_from_ring(struct device *dev, ...@@ -196,7 +196,7 @@ ssize_t adis16400_read_data_from_ring(struct device *dev,
int adis16400_configure_ring(struct iio_dev *indio_dev); int adis16400_configure_ring(struct iio_dev *indio_dev);
void adis16400_unconfigure_ring(struct iio_dev *indio_dev); void adis16400_unconfigure_ring(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline void adis16400_remove_trigger(struct iio_dev *indio_dev) static inline void adis16400_remove_trigger(struct iio_dev *indio_dev)
{ {
...@@ -224,5 +224,5 @@ static inline void adis16400_unconfigure_ring(struct iio_dev *indio_dev) ...@@ -224,5 +224,5 @@ static inline void adis16400_unconfigure_ring(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* SPI_ADIS16400_H_ */ #endif /* SPI_ADIS16400_H_ */
...@@ -20,8 +20,8 @@ config ADE7754 ...@@ -20,8 +20,8 @@ config ADE7754
config ADE7758 config ADE7758
tristate "Analog Devices ADE7758 Poly Phase Multifunction Energy Metering IC Driver" tristate "Analog Devices ADE7758 Poly Phase Multifunction Energy Metering IC Driver"
depends on SPI depends on SPI
select IIO_TRIGGER if IIO_RING_BUFFER select IIO_TRIGGER if IIO_BUFFER
select IIO_SW_RING if IIO_RING_BUFFER select IIO_SW_RING if IIO_BUFFER
help help
Say yes here to build support for Analog Devices ADE7758 Polyphase Say yes here to build support for Analog Devices ADE7758 Polyphase
Multifunction Energy Metering IC with Per Phase Information Driver. Multifunction Energy Metering IC with Per Phase Information Driver.
......
...@@ -6,7 +6,7 @@ obj-$(CONFIG_ADE7753) += ade7753.o ...@@ -6,7 +6,7 @@ obj-$(CONFIG_ADE7753) += ade7753.o
obj-$(CONFIG_ADE7754) += ade7754.o obj-$(CONFIG_ADE7754) += ade7754.o
ade7758-y := ade7758_core.o ade7758-y := ade7758_core.o
ade7758-$(CONFIG_IIO_RING_BUFFER) += ade7758_ring.o ade7758_trigger.o ade7758-$(CONFIG_IIO_BUFFER) += ade7758_ring.o ade7758_trigger.o
obj-$(CONFIG_ADE7758) += ade7758.o obj-$(CONFIG_ADE7758) += ade7758.o
obj-$(CONFIG_ADE7759) += ade7759.o obj-$(CONFIG_ADE7759) += ade7759.o
......
...@@ -134,7 +134,7 @@ struct ade7758_state { ...@@ -134,7 +134,7 @@ struct ade7758_state {
unsigned char tx_buf[8]; unsigned char tx_buf[8];
}; };
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
/* At the moment triggers are only used for ring buffer /* At the moment triggers are only used for ring buffer
* filling. This may change! * filling. This may change!
*/ */
...@@ -158,7 +158,7 @@ int ade7758_spi_write_reg_8(struct device *dev, ...@@ -158,7 +158,7 @@ int ade7758_spi_write_reg_8(struct device *dev,
int ade7758_spi_read_reg_8(struct device *dev, int ade7758_spi_read_reg_8(struct device *dev,
u8 reg_address, u8 *val); u8 reg_address, u8 *val);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline void ade7758_remove_trigger(struct iio_dev *indio_dev) static inline void ade7758_remove_trigger(struct iio_dev *indio_dev)
{ {
...@@ -182,6 +182,6 @@ static inline int ade7758_initialize_ring(struct iio_ring_buffer *ring) ...@@ -182,6 +182,6 @@ static inline int ade7758_initialize_ring(struct iio_ring_buffer *ring)
static inline void ade7758_uninitialize_ring(struct iio_dev *indio_dev) static inline void ade7758_uninitialize_ring(struct iio_dev *indio_dev)
{ {
} }
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif #endif
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "iio.h" #include "iio.h"
#include "chrdev.h" #include "chrdev.h"
#ifdef CONFIG_IIO_RING_BUFFER #ifdef CONFIG_IIO_BUFFER
struct iio_ring_buffer; struct iio_ring_buffer;
...@@ -209,7 +209,7 @@ ssize_t iio_show_ring_enable(struct device *dev, ...@@ -209,7 +209,7 @@ ssize_t iio_show_ring_enable(struct device *dev,
int iio_sw_ring_preenable(struct iio_dev *indio_dev); int iio_sw_ring_preenable(struct iio_dev *indio_dev);
#else /* CONFIG_IIO_RING_BUFFER */ #else /* CONFIG_IIO_BUFFER */
static inline int iio_ring_buffer_register(struct iio_dev *indio_dev, static inline int iio_ring_buffer_register(struct iio_dev *indio_dev,
struct iio_chan_spec *channels, struct iio_chan_spec *channels,
...@@ -221,6 +221,6 @@ static inline int iio_ring_buffer_register(struct iio_dev *indio_dev, ...@@ -221,6 +221,6 @@ static inline int iio_ring_buffer_register(struct iio_dev *indio_dev,
static inline void iio_ring_buffer_unregister(struct iio_dev *indio_dev) static inline void iio_ring_buffer_unregister(struct iio_dev *indio_dev)
{}; {};
#endif /* CONFIG_IIO_RING_BUFFER */ #endif /* CONFIG_IIO_BUFFER */
#endif /* _IIO_RING_GENERIC_H_ */ #endif /* _IIO_RING_GENERIC_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment