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

2020-09-30 Thread Alexandre Belloni
On 30/09/2020 09:00:06+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 obtained also

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

2020-09-29 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),