]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: at91-adc: Use devm_platform_ioremap_resource
authorAishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Sun, 12 Apr 2020 13:56:42 +0000 (19:26 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:41 +0000 (16:56 +0100)
commit97b95c8559e9cce85b92a459e6da7f3923ffcf19
tree7638afa772ced8bdb3bb07641921e2dd6829dbaa
parent964680f839713cc5d8c70d4725bf120f0ed2fc6f
iio: adc: at91-adc: Use devm_platform_ioremap_resource

Use the helper function that wraps the calls to
platform_get_resource() and devm_ioremap_resource()
together. It reduces boilerplate and suggested by coccinelle.

Signed-off-by: Aishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/at91_adc.c