summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/ring_generic.h
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-08-30 12:41:14 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-06 16:00:28 -0700
commitc009f7e42617bd52b61a35de621cd1deda08042b (patch)
treedcb9af02913b8c6039a05b0c50e6e468c9ca33d4 /drivers/staging/iio/ring_generic.h
parent6446e9cd2c1658f0afe856dfbe0b4623db39fb46 (diff)
downloadop-kernel-dev-c009f7e42617bd52b61a35de621cd1deda08042b.zip
op-kernel-dev-c009f7e42617bd52b61a35de621cd1deda08042b.tar.gz
staging:iio:buffering cleanup ring_buffer_register_ex naming.
Now the old method is long gone, lets get rid of the _ex and whilst here remove the unused id parameter. Trivial mechanical change, but will break any out of tree drivers using this. V2: rebase V3: rebase Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio/ring_generic.h')
-rw-r--r--drivers/staging/iio/ring_generic.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/staging/iio/ring_generic.h b/drivers/staging/iio/ring_generic.h
index 37ab4db..25aacf3 100644
--- a/drivers/staging/iio/ring_generic.h
+++ b/drivers/staging/iio/ring_generic.h
@@ -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;
}
OpenPOWER on IntegriCloud