summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-09-30 16:50:46 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-10-10 19:04:58 +0300
commit3e4ef8e8cefada6b99150011a2d36a89e2fd2380 (patch)
tree7717cc54687a447e2caed714d962650c9b98b3b2 /include/linux/platform_data
parentad49bd57f9d574ddc859994db3ba996014e555e0 (diff)
downloadlinux-3e4ef8e8cefada6b99150011a2d36a89e2fd2380.tar.xz
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>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions