iio: make iio_device_get_drvdata take a const struct iio_dev *.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 21 May 2020 17:53:22 +0000 (18:53 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:49:50 +0000 (11:49 +0100)
commit18d563858d97dbefc9a16c8210ef2f97dc264202
treedb6a1891e4685c7536fe6baeb333c6b6d6a76497
parentcd64d3579d58f2aa547c1cff856d24169263f765
iio: make iio_device_get_drvdata take a const struct iio_dev *.

As this just calls dev_get_drvdata underneath which is happy with
a const struct device * we should change and avoid potentially
casting away a const in order to then put it back again.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
include/linux/iio/iio.h