]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: imx-lpi2c: use devm_platform_ioremap_resource() to simplify code
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 17 Jul 2019 08:40:17 +0000 (16:40 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 1 Aug 2019 12:49:52 +0000 (14:49 +0200)
commit41d2a6be41bb6fc05323312c62e5629a7fe08618
treeed243876149aefb4730d9fb7a5eec78fe90a45a3
parent194becd3261503f97f4601bd98a425141de722f9
i2c: imx-lpi2c: use devm_platform_ioremap_resource() to simplify code

Use the new helper devm_platform_ioremap_resource() which wraps the
platform_get_resource() and devm_ioremap_resource() together, to
simplify the code.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx-lpi2c.c