alistair23-linux/drivers/staging/iio/meter
Lars-Peter Clausen 7cbb753701 staging:iio: Streamline API function naming
Currently we use two different naming schemes in the IIO API, iio_verb_object
and iio_object_verb. E.g iio_device_register and iio_allocate_device. This
patches renames instances of the later to the former. The patch also renames allocate to
alloc as this seems to be the preferred form throughout the kernel.

In particular the following renames are performed by the patch:
	iio_put_device -> iio_device_put
	iio_allocate_device -> iio_device_alloc
	iio_free_device -> iio_device_free
	iio_get_trigger -> iio_trigger_get
	iio_put_trigger -> iio_trigger_put
	iio_allocate_trigger -> iio_trigger_alloc
	iio_free_trigger -> iio_trigger_free

The conversion was done with the following coccinelle patch with manual fixes to
comments and documentation.

<smpl>
@@
@@
-iio_put_device
+iio_device_put
@@
@@
-iio_allocate_device
+iio_device_alloc
@@
@@
-iio_free_device
+iio_device_free
@@
@@
-iio_get_trigger
+iio_trigger_get
@@
@@
-iio_put_trigger
+iio_trigger_put
@@
@@
-iio_allocate_trigger
+iio_trigger_alloc
@@
@@
-iio_free_trigger
+iio_trigger_free
</smpl>

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-29 21:23:49 -04:00
..
ade7753.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
ade7753.h staging:iio:meter:ade7753 allocate chip state with iio_dev; allocate buffers within state 2011-06-28 14:39:48 -07:00
ade7754.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
ade7754.h staging:iio:meter:ade7754: allocate state with iio_dev and buffers in state. 2011-06-28 14:39:48 -07:00
ade7758.h staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
ade7758_core.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
ade7758_ring.c IIO: Move core headers to include/linux/iio 2012-04-25 11:01:43 -07:00
ade7758_trigger.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
ade7759.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
ade7759.h staging:iio:meter:ade7759: allocate state with iio_dev 2011-06-28 14:39:51 -07:00
ade7854-i2c.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
ade7854-spi.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
ade7854.c staging:iio: Streamline API function naming 2012-04-29 21:23:49 -04:00
ade7854.h staging:iio:meter:ade7854: Allocate buffers in state and state with iio_dev. 2011-06-28 14:39:49 -07:00
Kconfig staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
Makefile staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
meter.h IIO: Move core headers to include/linux/iio 2012-04-25 11:01:43 -07:00