staging:iio: treewide rename iio_triggered_ring_* to iio_triggered_buffer_*
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 21 Sep 2011 10:15:53 +0000 (11:15 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Sep 2011 00:31:52 +0000 (17:31 -0700)
Not always a ring so naming is missleading.
Also, kfifo_buf is probably first buffer to take out of staging and it
definitely isn't a ring.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 files changed:
drivers/staging/iio/accel/adis16201_ring.c
drivers/staging/iio/accel/adis16203_ring.c
drivers/staging/iio/accel/adis16204_ring.c
drivers/staging/iio/accel/adis16209_ring.c
drivers/staging/iio/accel/adis16240_ring.c
drivers/staging/iio/accel/lis3l02dq_ring.c
drivers/staging/iio/adc/ad7192.c
drivers/staging/iio/adc/ad7298_ring.c
drivers/staging/iio/adc/ad7476_ring.c
drivers/staging/iio/adc/ad7606_ring.c
drivers/staging/iio/adc/ad7793.c
drivers/staging/iio/adc/ad7887_ring.c
drivers/staging/iio/adc/ad799x_ring.c
drivers/staging/iio/adc/max1363_ring.c
drivers/staging/iio/gyro/adis16260_ring.c
drivers/staging/iio/imu/adis16400_ring.c
drivers/staging/iio/industrialio-trigger.c
drivers/staging/iio/meter/ade7758_ring.c
drivers/staging/iio/trigger_consumer.h

index 1c1f35d..47be20a 100644 (file)
@@ -99,8 +99,8 @@ void adis16201_unconfigure_ring(struct iio_dev *indio_dev)
 
 static const struct iio_ring_setup_ops adis16201_ring_setup_ops = {
        .preenable = &iio_sw_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int adis16201_configure_ring(struct iio_dev *indio_dev)
index d7d692c..d86f86d 100644 (file)
@@ -101,8 +101,8 @@ void adis16203_unconfigure_ring(struct iio_dev *indio_dev)
 
 static const struct iio_ring_setup_ops adis16203_ring_setup_ops = {
        .preenable = &iio_sw_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int adis16203_configure_ring(struct iio_dev *indio_dev)
index 273293a..8cc1499 100644 (file)
@@ -96,8 +96,8 @@ void adis16204_unconfigure_ring(struct iio_dev *indio_dev)
 
 static const struct iio_ring_setup_ops adis16204_ring_setup_ops = {
        .preenable = &iio_sw_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int adis16204_configure_ring(struct iio_dev *indio_dev)
index bc654e2..941fc5a 100644 (file)
@@ -96,8 +96,8 @@ void adis16209_unconfigure_ring(struct iio_dev *indio_dev)
 
 static const struct iio_ring_setup_ops adis16209_ring_setup_ops = {
        .preenable = &iio_sw_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int adis16209_configure_ring(struct iio_dev *indio_dev)
index b41e24f..e52ad2e 100644 (file)
@@ -93,8 +93,8 @@ void adis16240_unconfigure_ring(struct iio_dev *indio_dev)
 
 static const struct iio_ring_setup_ops adis16240_ring_setup_ops = {
        .preenable = &iio_sw_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int adis16240_configure_ring(struct iio_dev *indio_dev)
index c816933..eaecda4 100644 (file)
@@ -386,7 +386,7 @@ static int lis3l02dq_ring_postenable(struct iio_dev *indio_dev)
        if (ret)
                goto error_ret;
 
-       return iio_triggered_ring_postenable(indio_dev);
+       return iio_triggered_buffer_postenable(indio_dev);
 error_ret:
        return ret;
 }
@@ -397,7 +397,7 @@ static int lis3l02dq_ring_predisable(struct iio_dev *indio_dev)
        u8 t;
        int ret;
 
-       ret = iio_triggered_ring_predisable(indio_dev);
+       ret = iio_triggered_buffer_predisable(indio_dev);
        if (ret)
                goto error_ret;
 
index 5a389b8..3f4e911 100644 (file)
@@ -564,8 +564,8 @@ static irqreturn_t ad7192_trigger_handler(int irq, void *p)
 
 static const struct iio_ring_setup_ops ad7192_ring_setup_ops = {
        .preenable = &ad7192_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
        .postdisable = &ad7192_ring_postdisable,
 };
 
index 246b2e7..9c5ac9d 100644 (file)
@@ -145,8 +145,8 @@ static irqreturn_t ad7298_trigger_handler(int irq, void *p)
 
 static const struct iio_ring_setup_ops ad7298_ring_setup_ops = {
        .preenable = &ad7298_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int ad7298_register_ring_funcs_and_init(struct iio_dev *indio_dev)
index b109afb..3cc673c 100644 (file)
@@ -107,8 +107,8 @@ done:
 
 static const struct iio_ring_setup_ops ad7476_ring_setup_ops = {
        .preenable = &ad7476_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int ad7476_register_ring_funcs_and_init(struct iio_dev *indio_dev)
index e642430..320ec68 100644 (file)
@@ -149,8 +149,8 @@ done:
 
 static const struct iio_ring_setup_ops ad7606_ring_setup_ops = {
        .preenable = &ad7606_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int ad7606_register_ring_funcs_and_init(struct iio_dev *indio_dev)
index 7044ed2..565199d 100644 (file)
@@ -430,8 +430,8 @@ static irqreturn_t ad7793_trigger_handler(int irq, void *p)
 
 static const struct iio_ring_setup_ops ad7793_ring_setup_ops = {
        .preenable = &ad7793_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
        .postdisable = &ad7793_ring_postdisable,
 };
 
index 36e118c..159aeb1 100644 (file)
@@ -149,8 +149,8 @@ done:
 
 static const struct iio_ring_setup_ops ad7887_ring_setup_ops = {
        .preenable = &ad7887_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
        .postdisable = &ad7887_ring_postdisable,
 };
 
index 438e81d..7b6488d 100644 (file)
@@ -155,8 +155,8 @@ out:
 
 static const struct iio_ring_setup_ops ad799x_buf_setup_ops = {
        .preenable = &ad799x_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int ad799x_register_ring_funcs_and_init(struct iio_dev *indio_dev)
index abe9e03..ef1c95f 100644 (file)
@@ -150,9 +150,9 @@ done:
 }
 
 static const struct iio_ring_setup_ops max1363_ring_setup_ops = {
-       .postenable = &iio_triggered_ring_postenable,
+       .postenable = &iio_triggered_buffer_postenable,
        .preenable = &max1363_ring_preenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int max1363_register_ring_funcs_and_init(struct iio_dev *indio_dev)
index 40226f7..2b1c65a 100644 (file)
@@ -98,8 +98,8 @@ void adis16260_unconfigure_ring(struct iio_dev *indio_dev)
 
 static const struct iio_ring_setup_ops adis16260_ring_setup_ops = {
        .preenable = &iio_sw_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int adis16260_configure_ring(struct iio_dev *indio_dev)
index af25697..421a9fa 100644 (file)
@@ -168,8 +168,8 @@ void adis16400_unconfigure_ring(struct iio_dev *indio_dev)
 
 static const struct iio_ring_setup_ops adis16400_ring_setup_ops = {
        .preenable = &iio_sw_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 int adis16400_configure_ring(struct iio_dev *indio_dev)
index a66dcf7..00d0e0c 100644 (file)
@@ -488,20 +488,20 @@ void iio_device_unregister_trigger_consumer(struct iio_dev *dev_info)
                iio_put_trigger(dev_info->trig);
 }
 
-int iio_triggered_ring_postenable(struct iio_dev *indio_dev)
+int iio_triggered_buffer_postenable(struct iio_dev *indio_dev)
 {
        return indio_dev->trig
                ? iio_trigger_attach_poll_func(indio_dev->trig,
                                               indio_dev->pollfunc)
                : 0;
 }
-EXPORT_SYMBOL(iio_triggered_ring_postenable);
+EXPORT_SYMBOL(iio_triggered_buffer_postenable);
 
-int iio_triggered_ring_predisable(struct iio_dev *indio_dev)
+int iio_triggered_buffer_predisable(struct iio_dev *indio_dev)
 {
        return indio_dev->trig
                ? iio_trigger_dettach_poll_func(indio_dev->trig,
                                                indio_dev->pollfunc)
                : 0;
 }
-EXPORT_SYMBOL(iio_triggered_ring_predisable);
+EXPORT_SYMBOL(iio_triggered_buffer_predisable);
index 9934f50..ece2a40 100644 (file)
@@ -121,8 +121,8 @@ static int ade7758_ring_preenable(struct iio_dev *indio_dev)
 
 static const struct iio_ring_setup_ops ade7758_ring_setup_ops = {
        .preenable = &ade7758_ring_preenable,
-       .postenable = &iio_triggered_ring_postenable,
-       .predisable = &iio_triggered_ring_predisable,
+       .postenable = &iio_triggered_buffer_postenable,
+       .predisable = &iio_triggered_buffer_predisable,
 };
 
 void ade7758_unconfigure_ring(struct iio_dev *indio_dev)
index 418e0bd..60d64b3 100644 (file)
@@ -48,5 +48,5 @@ void iio_trigger_notify_done(struct iio_trigger *trig);
  * Two functions for common case where all that happens is a pollfunc
  * is attached and detached from a trigger
  */
-int iio_triggered_ring_postenable(struct iio_dev *indio_dev);
-int iio_triggered_ring_predisable(struct iio_dev *indio_dev);
+int iio_triggered_buffer_postenable(struct iio_dev *indio_dev);
+int iio_triggered_buffer_predisable(struct iio_dev *indio_dev);