]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: sun4i-gpadc-iio: Use devm_platform_ioremap_resource
authorAishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Sun, 12 Apr 2020 14:32:18 +0000 (20:02 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:40 +0000 (16:56 +0100)
commit964680f839713cc5d8c70d4725bf120f0ed2fc6f
treedb70e8f406cc8d437463d4a09762b134d5ebc624
parent7501d9e556e8f7f46f2fe333e2acb8ce26221baf
iio: adc: sun4i-gpadc-iio: Use devm_platform_ioremap_resource

Use the helper function that wraps the calls to platform_get_resource()
and devm_ioremap_resource() together.  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/sun4i-gpadc-iio.c