i2c: stm32f4: Use devm_platform_get_and_ioremap_resource()
authorYangtao Li <frank.li@vivo.com>
Mon, 10 Jul 2023 06:33:44 +0000 (14:33 +0800)
committerWolfram Sang <wsa@kernel.org>
Mon, 14 Aug 2023 16:09:48 +0000 (18:09 +0200)
commit8086ea443d81725718d26b82fc83a47b46ac501d
tree56e333c48a5e412b0270f8bea782ba186d1f6c68
parent8f4bc41800321f42705bef92d8a28f20626ba660
i2c: stm32f4: 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-stm32f4.c