aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iio/iio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/iio/iio.h')
-rw-r--r--include/linux/iio/iio.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index 9c0908a70466..d21833909327 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -400,10 +400,10 @@ int iio_push_event(struct iio_dev *indio_dev, u64 ev_code, s64 timestamp);
400extern struct bus_type iio_bus_type; 400extern struct bus_type iio_bus_type;
401 401
402/** 402/**
403 * iio_put_device() - reference counted deallocation of struct device 403 * iio_device_put() - reference counted deallocation of struct device
404 * @dev: the iio_device containing the device 404 * @dev: the iio_device containing the device
405 **/ 405 **/
406static inline void iio_put_device(struct iio_dev *indio_dev) 406static inline void iio_device_put(struct iio_dev *indio_dev)
407{ 407{
408 if (indio_dev) 408 if (indio_dev)
409 put_device(&indio_dev->dev); 409 put_device(&indio_dev->dev);
@@ -412,10 +412,10 @@ static inline void iio_put_device(struct iio_dev *indio_dev)
412/* Can we make this smaller? */ 412/* Can we make this smaller? */
413#define IIO_ALIGN L1_CACHE_BYTES 413#define IIO_ALIGN L1_CACHE_BYTES
414/** 414/**
415 * iio_allocate_device() - allocate an iio_dev from a driver 415 * iio_device_alloc() - allocate an iio_dev from a driver
416 * @sizeof_priv: Space to allocate for private structure. 416 * @sizeof_priv: Space to allocate for private structure.
417 **/ 417 **/
418struct iio_dev *iio_allocate_device(int sizeof_priv); 418struct iio_dev *iio_device_alloc(int sizeof_priv);
419 419
420static inline void *iio_priv(const struct iio_dev *indio_dev) 420static inline void *iio_priv(const struct iio_dev *indio_dev)
421{ 421{
@@ -429,10 +429,10 @@ static inline struct iio_dev *iio_priv_to_dev(void *priv)
429} 429}
430 430
431/** 431/**
432 * iio_free_device() - free an iio_dev from a driver 432 * iio_device_free() - free an iio_dev from a driver
433 * @dev: the iio_dev associated with the device 433 * @dev: the iio_dev associated with the device
434 **/ 434 **/
435void iio_free_device(struct iio_dev *indio_dev); 435void iio_device_free(struct iio_dev *indio_dev);
436 436
437/** 437/**
438 * iio_buffer_enabled() - helper function to test if the buffer is enabled 438 * iio_buffer_enabled() - helper function to test if the buffer is enabled