i2c: mlxbf: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Mon, 10 Jul 2023 06:33:43 +0000 (14:33 +0800)
committerWolfram Sang <wsa@kernel.org>
Mon, 14 Aug 2023 16:09:44 +0000 (18:09 +0200)
commit8f4bc41800321f42705bef92d8a28f20626ba660
treed2b68844c3548915e529f92bd6120b600006ecb1
parentf9dce8d649abc6d83d7847ff38ac6623cf171667
i2c: mlxbf: 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: Yangtao Li <frank.li@vivo.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mlxbf.c