summaryrefslogtreecommitdiff
path: root/include/linux/iio/iio.h
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2021-04-26 20:49:09 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-05-17 15:54:17 +0300
commit396f7234856956eb29f009da6e5d846f29f87ebd (patch)
tree320b2dbe982017dc2e824365792aaf8862a517e1 /include/linux/iio/iio.h
parentb804e2b76ac6d5559b99588e0190ac97b5597497 (diff)
downloadlinux-396f7234856956eb29f009da6e5d846f29f87ebd.tar.xz
iio: core: move @chrdev from struct iio_dev to struct iio_dev_opaque
No reason for this to be exposed to the drivers, so lets move it to the opaque structure. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com> Link: https://lore.kernel.org/r/20210426174911.397061-8-jic23@kernel.org
Diffstat (limited to 'include/linux/iio/iio.h')
-rw-r--r--include/linux/iio/iio.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index a12bbd8b1e74..586e2dc4fbf3 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -512,7 +512,6 @@ struct iio_buffer_setup_ops {
* @clock_id: [INTERN] timestamping clock posix identifier
* @setup_ops: [DRIVER] callbacks to call before and after buffer
* enable/disable
- * @chrdev: [INTERN] associated character device
* @flags: [INTERN] file ops related flags including busy flag.
* @priv: [DRIVER] reference to driver's private information
* **MUST** be accessed **ONLY** via iio_priv() helper
@@ -542,7 +541,6 @@ struct iio_dev {
const struct iio_info *info;
clockid_t clock_id;
const struct iio_buffer_setup_ops *setup_ops;
- struct cdev chrdev;
unsigned long flags;
void *priv;