Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexandru Ardelean and committed by
Jonathan Cameron
f4bf09d5 3593cd53

-6
-6
include/linux/iio/iio.h
··· 689 689 return indio_dev->priv; 690 690 } 691 691 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 - 698 692 void iio_device_free(struct iio_dev *indio_dev); 699 693 struct iio_dev *devm_iio_device_alloc(struct device *parent, int sizeof_priv); 700 694 struct iio_trigger *devm_iio_trigger_alloc(struct device *dev,