aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iio/iio.h
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2012-04-27 04:58:36 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-29 21:26:17 -0400
commitfc6d11398e22a3b2cfd7c3b8421653c6075b624b (patch)
tree9347433ec6449472a10b48d3d01c8526b048a03b /include/linux/iio/iio.h
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/iio.h')
-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;
111 * @shared: Whether this attribute is shared between all channels. 111 * @shared: Whether this attribute is shared between all channels.
112 * @read: Read callback for this info attribute, may be NULL. 112 * @read: Read callback for this info attribute, may be NULL.
113 * @write: Write callback for this info attribute, may be NULL. 113 * @write: Write callback for this info attribute, may be NULL.
114 * @private: Data private to the driver.
114 */ 115 */
115struct iio_chan_spec_ext_info { 116struct iio_chan_spec_ext_info {
116 const char *name; 117 const char *name;
117 bool shared; 118 bool shared;
118 ssize_t (*read)(struct iio_dev *, struct iio_chan_spec const *, 119 ssize_t (*read)(struct iio_dev *, uintptr_t private,
119 char *buf); 120 struct iio_chan_spec const *, char *buf);
120 ssize_t (*write)(struct iio_dev *, struct iio_chan_spec const *, 121 ssize_t (*write)(struct iio_dev *, uintptr_t private,
121 const char *buf, size_t len); 122 struct iio_chan_spec const *, const char *buf,
123 size_t len);
124 uintptr_t private;
122}; 125};
123 126
124/** 127/**