i2c: versatile: Use devm_platform_get_and_ioremap_resource()
authorye xingchen <ye.xingchen@zte.com.cn>
Thu, 19 Jan 2023 09:21:23 +0000 (17:21 +0800)
committerWolfram Sang <wsa@kernel.org>
Wed, 14 Jun 2023 08:40:09 +0000 (10:40 +0200)
commitacdaf0e767494697edf44d3424f5458d5868b3ea
treeb3e70f8d404b1c3e8ab7113a90c7159ff3871a3d
parent0520628e5c6bce6b43af8b468ae9396617d5b9a4
i2c: versatile: Use devm_platform_get_and_ioremap_resource()

Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-versatile.c