diff options
| author | Peter Meerwald <p.meerwald@bct-electronic.com> | 2012-06-12 09:38:48 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-12 17:53:31 -0400 |
| commit | 7dcd7b60724cab551deba54f31752fa8959efab4 (patch) | |
| tree | b60617af06b813bcf506347a48ebc08910eb8641 /include/linux | |
| parent | f4c349395e8ad4fe07f1222502568f0d9d5d1dfc (diff) | |
iio: cleanup iio/iio.h
indentation of parameter description,
fix parameter name (@dev -> @indio_dev) in comments,
IIO device info structure -> IIO device structure
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/iio/iio.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h index bd3e7217ceee..ae0cad908182 100644 --- a/include/linux/iio/iio.h +++ b/include/linux/iio/iio.h | |||
| @@ -131,10 +131,10 @@ struct iio_chan_spec_ext_info { | |||
| 131 | 131 | ||
| 132 | /** | 132 | /** |
| 133 | * struct iio_enum - Enum channel info attribute | 133 | * struct iio_enum - Enum channel info attribute |
| 134 | * @items: An array of strings. | 134 | * @items: An array of strings. |
| 135 | * @num_items: Length of the item array. | 135 | * @num_items: Length of the item array. |
| 136 | * @set: Set callback function, may be NULL. | 136 | * @set: Set callback function, may be NULL. |
| 137 | * @get: Get callback function, may be NULL. | 137 | * @get: Get callback function, may be NULL. |
| 138 | * | 138 | * |
| 139 | * The iio_enum struct can be used to implement enum style channel attributes. | 139 | * The iio_enum struct can be used to implement enum style channel attributes. |
| 140 | * Enum style attributes are those which have a set of strings which map to | 140 | * Enum style attributes are those which have a set of strings which map to |
| @@ -162,9 +162,9 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev, | |||
| 162 | 162 | ||
| 163 | /** | 163 | /** |
| 164 | * IIO_ENUM() - Initialize enum extended channel attribute | 164 | * IIO_ENUM() - Initialize enum extended channel attribute |
| 165 | * @_name: Attribute name | 165 | * @_name: Attribute name |
| 166 | * @_shared: Whether the attribute is shared between all channels | 166 | * @_shared: Whether the attribute is shared between all channels |
| 167 | * @_e: Pointer to a iio_enum struct | 167 | * @_e: Pointer to a iio_enum struct |
| 168 | * | 168 | * |
| 169 | * This should usually be used together with IIO_ENUM_AVAILABLE() | 169 | * This should usually be used together with IIO_ENUM_AVAILABLE() |
| 170 | */ | 170 | */ |
| @@ -179,8 +179,8 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev, | |||
| 179 | 179 | ||
| 180 | /** | 180 | /** |
| 181 | * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute | 181 | * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute |
| 182 | * @_name: Attribute name ("_available" will be appended to the name) | 182 | * @_name: Attribute name ("_available" will be appended to the name) |
| 183 | * @_e: Pointer to a iio_enum struct | 183 | * @_e: Pointer to a iio_enum struct |
| 184 | * | 184 | * |
| 185 | * Creates a read only attribute which list all the available enum items in a | 185 | * Creates a read only attribute which list all the available enum items in a |
| 186 | * space separated list. This should usually be used together with IIO_ENUM() | 186 | * space separated list. This should usually be used together with IIO_ENUM() |
| @@ -201,7 +201,7 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev, | |||
| 201 | * channel then this is it. If modified is set then the | 201 | * channel then this is it. If modified is set then the |
| 202 | * value here specifies the modifier. | 202 | * value here specifies the modifier. |
| 203 | * @address: Driver specific identifier. | 203 | * @address: Driver specific identifier. |
| 204 | * @scan_index: Monotonic index to give ordering in scans when read | 204 | * @scan_index: Monotonic index to give ordering in scans when read |
| 205 | * from a buffer. | 205 | * from a buffer. |
| 206 | * @scan_type: Sign: 's' or 'u' to specify signed or unsigned | 206 | * @scan_type: Sign: 's' or 'u' to specify signed or unsigned |
| 207 | * realbits: Number of valid bits of data | 207 | * realbits: Number of valid bits of data |
| @@ -211,7 +211,7 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev, | |||
| 211 | * endianness: little or big endian | 211 | * endianness: little or big endian |
| 212 | * @info_mask: What information is to be exported about this channel. | 212 | * @info_mask: What information is to be exported about this channel. |
| 213 | * This includes calibbias, scale etc. | 213 | * This includes calibbias, scale etc. |
| 214 | * @event_mask: What events can this channel produce. | 214 | * @event_mask: What events can this channel produce. |
| 215 | * @ext_info: Array of extended info attributes for this channel. | 215 | * @ext_info: Array of extended info attributes for this channel. |
| 216 | * The array is NULL terminated, the last element should | 216 | * The array is NULL terminated, the last element should |
| 217 | * have it's name field set to NULL. | 217 | * have it's name field set to NULL. |
| @@ -482,7 +482,7 @@ extern struct bus_type iio_bus_type; | |||
| 482 | 482 | ||
| 483 | /** | 483 | /** |
| 484 | * iio_device_put() - reference counted deallocation of struct device | 484 | * iio_device_put() - reference counted deallocation of struct device |
| 485 | * @dev: the iio_device containing the device | 485 | * @indio_dev: IIO device structure containing the device |
| 486 | **/ | 486 | **/ |
| 487 | static inline void iio_device_put(struct iio_dev *indio_dev) | 487 | static inline void iio_device_put(struct iio_dev *indio_dev) |
| 488 | { | 488 | { |
| @@ -492,7 +492,7 @@ static inline void iio_device_put(struct iio_dev *indio_dev) | |||
| 492 | 492 | ||
| 493 | /** | 493 | /** |
| 494 | * dev_to_iio_dev() - Get IIO device struct from a device struct | 494 | * dev_to_iio_dev() - Get IIO device struct from a device struct |
| 495 | * @dev: The device embedded in the IIO device | 495 | * @dev: The device embedded in the IIO device |
| 496 | * | 496 | * |
| 497 | * Note: The device must be a IIO device, otherwise the result is undefined. | 497 | * Note: The device must be a IIO device, otherwise the result is undefined. |
| 498 | */ | 498 | */ |
| @@ -503,7 +503,7 @@ static inline struct iio_dev *dev_to_iio_dev(struct device *dev) | |||
| 503 | 503 | ||
| 504 | /** | 504 | /** |
| 505 | * iio_device_get() - increment reference count for the device | 505 | * iio_device_get() - increment reference count for the device |
| 506 | * @indio_dev: IIO device structure | 506 | * @indio_dev: IIO device structure |
| 507 | * | 507 | * |
| 508 | * Returns: The passed IIO device | 508 | * Returns: The passed IIO device |
| 509 | **/ | 509 | **/ |
| @@ -516,7 +516,7 @@ static inline struct iio_dev *iio_device_get(struct iio_dev *indio_dev) | |||
| 516 | #define IIO_ALIGN L1_CACHE_BYTES | 516 | #define IIO_ALIGN L1_CACHE_BYTES |
| 517 | /** | 517 | /** |
| 518 | * iio_device_alloc() - allocate an iio_dev from a driver | 518 | * iio_device_alloc() - allocate an iio_dev from a driver |
| 519 | * @sizeof_priv: Space to allocate for private structure. | 519 | * @sizeof_priv: Space to allocate for private structure. |
| 520 | **/ | 520 | **/ |
| 521 | struct iio_dev *iio_device_alloc(int sizeof_priv); | 521 | struct iio_dev *iio_device_alloc(int sizeof_priv); |
| 522 | 522 | ||
| @@ -533,13 +533,13 @@ static inline struct iio_dev *iio_priv_to_dev(void *priv) | |||
| 533 | 533 | ||
| 534 | /** | 534 | /** |
| 535 | * iio_device_free() - free an iio_dev from a driver | 535 | * iio_device_free() - free an iio_dev from a driver |
| 536 | * @dev: the iio_dev associated with the device | 536 | * @indio_dev: the iio_dev associated with the device |
| 537 | **/ | 537 | **/ |
| 538 | void iio_device_free(struct iio_dev *indio_dev); | 538 | void iio_device_free(struct iio_dev *indio_dev); |
| 539 | 539 | ||
| 540 | /** | 540 | /** |
| 541 | * iio_buffer_enabled() - helper function to test if the buffer is enabled | 541 | * iio_buffer_enabled() - helper function to test if the buffer is enabled |
| 542 | * @indio_dev: IIO device info structure for device | 542 | * @indio_dev: IIO device structure for device |
| 543 | **/ | 543 | **/ |
| 544 | static inline bool iio_buffer_enabled(struct iio_dev *indio_dev) | 544 | static inline bool iio_buffer_enabled(struct iio_dev *indio_dev) |
| 545 | { | 545 | { |
| @@ -549,7 +549,7 @@ static inline bool iio_buffer_enabled(struct iio_dev *indio_dev) | |||
| 549 | 549 | ||
| 550 | /** | 550 | /** |
| 551 | * iio_get_debugfs_dentry() - helper function to get the debugfs_dentry | 551 | * iio_get_debugfs_dentry() - helper function to get the debugfs_dentry |
| 552 | * @indio_dev: IIO device info structure for device | 552 | * @indio_dev: IIO device structure for device |
| 553 | **/ | 553 | **/ |
| 554 | #if defined(CONFIG_DEBUG_FS) | 554 | #if defined(CONFIG_DEBUG_FS) |
| 555 | static inline struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev) | 555 | static inline struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev) |
