]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7cedf0c2afdce671255691830c58caee623fa91
treedb6a1891e4685c7536fe6baeb333c6b6d6a76497
parent41905d32fbe76b78e7b9d476e2625af10aa1b0bc
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