aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iio/iio.h
diff options
context:
space:
mode:
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/**