aboutsummaryrefslogtreecommitdiff
path: root/include/linux/iio
diff options
context:
space:
mode:
authorMichael Hennerich2012-04-27 10:58:36 +0200
committerGreg Kroah-Hartman2012-04-29 21:26:17 -0400
commitfc6d11398e22a3b2cfd7c3b8421653c6075b624b (patch)
tree9347433ec6449472a10b48d3d01c8526b048a03b /include/linux/iio
parent73e016ef94d801bd0278959606d2f72f07a2abab (diff)
iio: core: iio_chan_spec_ext_info: Add private handle
There is currently no user, but we might need it in future. So better add it now, before we have to convert drivers afterwards. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/iio')
-rw-r--r--include/linux/iio/iio.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index 43002b2b1e38..6fdbdb858e35 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -111,14 +111,17 @@ struct iio_dev;
* @shared: Whether this attribute is shared between all channels.
* @read: Read callback for this info attribute, may be NULL.
* @write: Write callback for this info attribute, may be NULL.
+ * @private: Data private to the driver.
*/
struct iio_chan_spec_ext_info {
const char *name;
bool shared;
- ssize_t (*read)(struct iio_dev *, struct iio_chan_spec const *,
- char *buf);
- ssize_t (*write)(struct iio_dev *, struct iio_chan_spec const *,
- const char *buf, size_t len);
+ ssize_t (*read)(struct iio_dev *, uintptr_t private,
+ struct iio_chan_spec const *, char *buf);
+ ssize_t (*write)(struct iio_dev *, uintptr_t private,
+ struct iio_chan_spec const *, const char *buf,
+ size_t len);
+ uintptr_t private;
};
/**