|
@@ -206,13 +206,12 @@ static inline int iio_scan_mask_set(struct iio_ring_buffer *ring, int bit)
|
|
|
container_of(d, struct iio_ring_buffer, dev)
|
|
|
|
|
|
/**
|
|
|
- * iio_ring_buffer_register_ex() - register the buffer with IIO core
|
|
|
+ * iio_ring_buffer_register() - register the buffer with IIO core
|
|
|
* @indio_dev: device with the buffer to be registered
|
|
|
- * @id: the id of the buffer (typically 0)
|
|
|
**/
|
|
|
-int iio_ring_buffer_register_ex(struct iio_dev *indio_dev, int id,
|
|
|
- const struct iio_chan_spec *channels,
|
|
|
- int num_channels);
|
|
|
+int iio_ring_buffer_register(struct iio_dev *indio_dev,
|
|
|
+ const struct iio_chan_spec *channels,
|
|
|
+ int num_channels);
|
|
|
|
|
|
/**
|
|
|
* iio_ring_buffer_unregister() - unregister the buffer from IIO core
|
|
@@ -265,10 +264,9 @@ int iio_sw_ring_preenable(struct iio_dev *indio_dev);
|
|
|
|
|
|
#else /* CONFIG_IIO_RING_BUFFER */
|
|
|
|
|
|
-static inline int iio_ring_buffer_register_ex(struct iio_dev *indio_dev,
|
|
|
- int id,
|
|
|
- struct iio_chan_spec *channels,
|
|
|
- int num_channels)
|
|
|
+static inline int iio_ring_buffer_register(struct iio_dev *indio_dev,
|
|
|
+ struct iio_chan_spec *channels,
|
|
|
+ int num_channels)
|
|
|
{
|
|
|
return 0;
|
|
|
}
|