staging:iio: replacing term ring with buffer in the IIO core.
[linux-2.6-block.git] / drivers / staging / iio / accel / adis16209_core.c
index 2dd24c3e5cd7d1977b4aae4690051eaad763d8fa..1824e729153e304173f0a63ee069c250e3ba7724 100644 (file)
@@ -494,9 +494,9 @@ static int __devinit adis16209_probe(struct spi_device *spi)
        if (ret)
                goto error_free_dev;
 
-       ret = iio_ring_buffer_register(indio_dev,
-                                      adis16209_channels,
-                                      ARRAY_SIZE(adis16209_channels));
+       ret = iio_buffer_register(indio_dev,
+                                 adis16209_channels,
+                                 ARRAY_SIZE(adis16209_channels));
        if (ret) {
                printk(KERN_ERR "failed to initialize the ring\n");
                goto error_unreg_ring_funcs;
@@ -521,7 +521,7 @@ static int __devinit adis16209_probe(struct spi_device *spi)
 error_remove_trigger:
        adis16209_remove_trigger(indio_dev);
 error_uninitialize_ring:
-       iio_ring_buffer_unregister(indio_dev);
+       iio_buffer_unregister(indio_dev);
 error_unreg_ring_funcs:
        adis16209_unconfigure_ring(indio_dev);
 error_free_dev:
@@ -537,7 +537,7 @@ static int adis16209_remove(struct spi_device *spi)
        flush_scheduled_work();
 
        adis16209_remove_trigger(indio_dev);
-       iio_ring_buffer_unregister(indio_dev);
+       iio_buffer_unregister(indio_dev);
        adis16209_unconfigure_ring(indio_dev);
        iio_device_unregister(indio_dev);