Re: [PATCH 2/2] iio: adc: at91_adc: const-ify some driver data

2020-09-29 Thread Jonathan Cameron
On Mon, 28 Sep 2020 15:54:24 +0300 Alexandru Ardelean wrote: > 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 obtain

[PATCH 2/2] iio: adc: at91_adc: const-ify some driver data

2020-09-28 Thread Alexandru Ardelean
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),