summaryrefslogtreecommitdiff
path: root/include/linux/iio/iio.h
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-06-21 15:33:39 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-07-13 15:07:34 +0100
commitf4bf09d5303ab3896604c58363fc705ba649ccb8 (patch)
tree2b2a2982c51d83c483e2aaec920b082c4911546b /include/linux/iio/iio.h
parent3593cd53962fa17e4eaaae8faa5c8f62ec7bbd5e (diff)
iio: core: remove iio_priv_to_dev() helper
All users of this helper have been updated to not use it. Remove it now, so that we don't need to move it when creating the iio_dev_opaque structure. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/iio/iio.h')
-rw-r--r--include/linux/iio/iio.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index 30c9c9502478..e2df67a3b9ab 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -689,12 +689,6 @@ static inline void *iio_priv(const struct iio_dev *indio_dev)
return indio_dev->priv;
}
-static inline struct iio_dev *iio_priv_to_dev(void *priv)
-{
- return (struct iio_dev *)((char *)priv -
- ALIGN(sizeof(struct iio_dev), IIO_ALIGN));
-}
-
void iio_device_free(struct iio_dev *indio_dev);
struct iio_dev *devm_iio_device_alloc(struct device *parent, int sizeof_priv);
struct iio_trigger *devm_iio_trigger_alloc(struct device *dev,