i2c: wmt: Use devm_platform_get_and_ioremap_resource()
authorye xingchen <ye.xingchen@zte.com.cn>
Sat, 28 Jan 2023 06:51:44 +0000 (14:51 +0800)
committerWolfram Sang <wsa@kernel.org>
Wed, 14 Jun 2023 08:41:17 +0000 (10:41 +0200)
commit3152893c04d2c03bf752a0866d6bf8fae91779c6
tree279f81e11bb97307fde2a5a9db89d39ba5a2d1d5
parentacdaf0e767494697edf44d3424f5458d5868b3ea
i2c: wmt: 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>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-wmt.c