]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iio: adc: at91_adc: use of_device_get_match_data() helper
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Wed, 30 Sep 2020 13:50:45 +0000 (16:50 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 10 Oct 2020 16:04:58 +0000 (17:04 +0100)
commitad49bd57f9d574ddc859994db3ba996014e555e0
tree3ad8d2b3f49507b7e197e2d1968db415ecba61e4
parentd93dd060809f3db32ef3198121989e26e3049e00
iio: adc: at91_adc: use of_device_get_match_data() helper

This is a small tidy-up. The of_device_get_match_data() helper retrieves
the driver data from the OF table, without needed to explicitly know the
table variable (since it can retrieve it from the driver object).

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-2-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91_adc.c