OSDN Git Service

iio: imx7d_adc: Use devm_platform_ioremap_resource()
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Wed, 3 Apr 2019 07:03:23 +0000 (00:03 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Apr 2019 12:22:30 +0000 (13:22 +0100)
commita8427a7b371bbf21a0628e4611e3154fe9aa2ccb
tree51c23ea958026823951e72d4ca76b63537bd9da3
parent8cc393bf300b4bfc4c6d2e2e017c6468086cfecc
iio: imx7d_adc: Use devm_platform_ioremap_resource()

Use devm_platform_ioremap_resource() to be able to drop a bit of
explicit boilerplate code.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Cc: Chris Healy <cphealy@gmail.com>
Cc: linux-iio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/imx7d_adc.c