Alexandru Ardelean 3e4ef8e8ce iio: adc: at91_adc: const-ify some driver data
The main intent is to get rid of the cast for the void-pointer returned by
of_device_get_match_data().

This requires const-ifying the 'caps' and 'registers' references on the
at91_adc_state struct.

The caps can be obtained also from the old platform_data (in the
at91_adc_probe_pdata() function), but that cast is not touched in this
patch, since the old platform_data should be removed/cleaned-away.
Also, that cast deals with converting a kernel_ulong_t type to a pointer.
So, updating that cast doesn't yield any benefit.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200930135048.11530-3-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-10-10 17:04:58 +01:00
..
2020-09-04 13:19:19 -07:00
2020-08-02 18:26:51 +03:00
2020-09-20 15:18:11 -07:00
2020-07-27 11:49:37 +02:00
2020-09-15 16:20:43 -07:00
2020-08-29 12:37:00 -07:00
2020-08-05 19:24:27 -07:00
2020-09-21 19:49:15 -04:00
2020-09-24 09:05:04 -07:00
2020-08-28 10:15:33 -07:00
2020-09-13 08:52:21 -07:00
2020-10-05 08:55:26 +02:00
2020-09-26 11:07:36 -07:00
2020-10-02 14:48:25 -07:00
2020-09-29 17:21:54 +02:00
2020-08-14 16:00:09 -07:00
2020-09-25 15:16:01 -07:00
2020-09-26 11:01:18 -07:00
2020-10-02 14:42:13 -07:00
2020-09-25 15:21:54 -07:00
2020-10-02 14:42:13 -07:00
2020-09-15 13:52:14 +02:00
2020-09-25 16:53:02 +02:00
2020-09-20 10:46:26 -07:00