aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2020-09-30 16:50:46 +0300
committerJonathan Cameron <[email protected]>2020-10-10 17:04:58 +0100
commit3e4ef8e8cefada6b99150011a2d36a89e2fd2380 (patch)
tree7717cc54687a447e2caed714d962650c9b98b3b2 /tools/perf/scripts/python
parentad49bd57f9d574ddc859994db3ba996014e555e0 (diff)
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 <[email protected]> Reviewed-by: Alexandre Belloni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions