Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317322
b: refs/heads/master
c: 7dcd7b6
h: refs/heads/master
v: v3
  • Loading branch information
Peter Meerwald authored and Greg Kroah-Hartman committed Jun 12, 2012
1 parent be48013 commit f905b07
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f4c349395e8ad4fe07f1222502568f0d9d5d1dfc
refs/heads/master: 7dcd7b60724cab551deba54f31752fa8959efab4
36 changes: 18 additions & 18 deletions trunk/include/linux/iio/iio.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ struct iio_chan_spec_ext_info {

/**
* struct iio_enum - Enum channel info attribute
* @items: An array of strings.
* @num_items: Length of the item array.
* @set: Set callback function, may be NULL.
* @get: Get callback function, may be NULL.
* @items: An array of strings.
* @num_items: Length of the item array.
* @set: Set callback function, may be NULL.
* @get: Get callback function, may be NULL.
*
* The iio_enum struct can be used to implement enum style channel attributes.
* Enum style attributes are those which have a set of strings which map to
Expand Down Expand Up @@ -162,9 +162,9 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev,

/**
* IIO_ENUM() - Initialize enum extended channel attribute
* @_name: Attribute name
* @_shared: Whether the attribute is shared between all channels
* @_e: Pointer to a iio_enum struct
* @_name: Attribute name
* @_shared: Whether the attribute is shared between all channels
* @_e: Pointer to a iio_enum struct
*
* This should usually be used together with IIO_ENUM_AVAILABLE()
*/
Expand All @@ -179,8 +179,8 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev,

/**
* IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute
* @_name: Attribute name ("_available" will be appended to the name)
* @_e: Pointer to a iio_enum struct
* @_name: Attribute name ("_available" will be appended to the name)
* @_e: Pointer to a iio_enum struct
*
* Creates a read only attribute which list all the available enum items in a
* space separated list. This should usually be used together with IIO_ENUM()
Expand All @@ -201,7 +201,7 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev,
* channel then this is it. If modified is set then the
* value here specifies the modifier.
* @address: Driver specific identifier.
* @scan_index: Monotonic index to give ordering in scans when read
* @scan_index: Monotonic index to give ordering in scans when read
* from a buffer.
* @scan_type: Sign: 's' or 'u' to specify signed or unsigned
* realbits: Number of valid bits of data
Expand All @@ -211,7 +211,7 @@ ssize_t iio_enum_write(struct iio_dev *indio_dev,
* endianness: little or big endian
* @info_mask: What information is to be exported about this channel.
* This includes calibbias, scale etc.
* @event_mask: What events can this channel produce.
* @event_mask: What events can this channel produce.
* @ext_info: Array of extended info attributes for this channel.
* The array is NULL terminated, the last element should
* have it's name field set to NULL.
Expand Down Expand Up @@ -482,7 +482,7 @@ extern struct bus_type iio_bus_type;

/**
* iio_device_put() - reference counted deallocation of struct device
* @dev: the iio_device containing the device
* @indio_dev: IIO device structure containing the device
**/
static inline void iio_device_put(struct iio_dev *indio_dev)
{
Expand All @@ -492,7 +492,7 @@ static inline void iio_device_put(struct iio_dev *indio_dev)

/**
* dev_to_iio_dev() - Get IIO device struct from a device struct
* @dev: The device embedded in the IIO device
* @dev: The device embedded in the IIO device
*
* Note: The device must be a IIO device, otherwise the result is undefined.
*/
Expand All @@ -503,7 +503,7 @@ static inline struct iio_dev *dev_to_iio_dev(struct device *dev)

/**
* iio_device_get() - increment reference count for the device
* @indio_dev: IIO device structure
* @indio_dev: IIO device structure
*
* Returns: The passed IIO device
**/
Expand All @@ -516,7 +516,7 @@ static inline struct iio_dev *iio_device_get(struct iio_dev *indio_dev)
#define IIO_ALIGN L1_CACHE_BYTES
/**
* iio_device_alloc() - allocate an iio_dev from a driver
* @sizeof_priv: Space to allocate for private structure.
* @sizeof_priv: Space to allocate for private structure.
**/
struct iio_dev *iio_device_alloc(int sizeof_priv);

Expand All @@ -533,13 +533,13 @@ static inline struct iio_dev *iio_priv_to_dev(void *priv)

/**
* iio_device_free() - free an iio_dev from a driver
* @dev: the iio_dev associated with the device
* @indio_dev: the iio_dev associated with the device
**/
void iio_device_free(struct iio_dev *indio_dev);

/**
* iio_buffer_enabled() - helper function to test if the buffer is enabled
* @indio_dev: IIO device info structure for device
* @indio_dev: IIO device structure for device
**/
static inline bool iio_buffer_enabled(struct iio_dev *indio_dev)
{
Expand All @@ -549,7 +549,7 @@ static inline bool iio_buffer_enabled(struct iio_dev *indio_dev)

/**
* iio_get_debugfs_dentry() - helper function to get the debugfs_dentry
* @indio_dev: IIO device info structure for device
* @indio_dev: IIO device structure for device
**/
#if defined(CONFIG_DEBUG_FS)
static inline struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev)
Expand Down

0 comments on commit f905b07

Please sign in to comment.