i2c: mt65xx: Use devm_platform_get_and_ioremap_resource()
authorye xingchen <ye.xingchen@zte.com.cn>
Thu, 19 Jan 2023 09:19:58 +0000 (17:19 +0800)
committerWolfram Sang <wsa@kernel.org>
Fri, 20 Jan 2023 09:31:18 +0000 (10:31 +0100)
commit83a7f470f1f23e613844f0a991e8d121fef919f6
tree7531816a9eabab78601fca6c2185a967a8cb268a
parent9fc49c4ce0717be3963bc881d36f98abc252869e
i2c: mt65xx: 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: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mt65xx.c