Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304665
b: refs/heads/master
c: 7a7913f
h: refs/heads/master
i:
  304663: f124ee3
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Greg Kroah-Hartman committed May 14, 2012
1 parent 31e0b10 commit 7a92de9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7086e6e5baae90047ecfb1416082409634868e66
refs/heads/master: 7a7913f11ddf932e20d2bde72bec57f2f7a9b49e
11 changes: 11 additions & 0 deletions trunk/include/linux/iio/iio.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,17 @@ static inline void iio_device_put(struct iio_dev *indio_dev)
put_device(&indio_dev->dev);
};

/**
* dev_to_iio_dev() - Get IIO device struct from a device struct
* @dev: The device embedded in the IIO device
*
* Note: The device must be a IIO device, otherwise the result is undefined.
*/
static inline struct iio_dev *dev_to_iio_dev(struct device *dev)
{
return container_of(dev, struct iio_dev, dev);
}

/* Can we make this smaller? */
#define IIO_ALIGN L1_CACHE_BYTES
/**
Expand Down

0 comments on commit 7a92de9

Please sign in to comment.