Skip to content

Commit f4bf09d

Browse files
commodoJonathan Cameron
authored andcommitted
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>
1 parent 3593cd5 commit f4bf09d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎include/linux/iio/iio.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,6 @@ static inline void *iio_priv(const struct iio_dev *indio_dev)
689689
return indio_dev->priv;
690690
}
691691

692-
static inline struct iio_dev *iio_priv_to_dev(void *priv)
693-
{
694-
return (struct iio_dev *)((char *)priv -
695-
ALIGN(sizeof(struct iio_dev), IIO_ALIGN));
696-
}
697-
698692
void iio_device_free(struct iio_dev *indio_dev);
699693
struct iio_dev *devm_iio_device_alloc(struct device *parent, int sizeof_priv);
700694
struct iio_trigger *devm_iio_trigger_alloc(struct device *dev,

0 commit comments

Comments
 (0)