coccinelle: api: add devm_platform_ioremap_resource script
authorHimanshu Jha <himanshujha199640@gmail.com>
Tue, 16 Jul 2019 05:52:22 +0000 (11:22 +0530)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 17 Jul 2019 13:37:51 +0000 (22:37 +0900)
commitd09778d16e20bc4f1f4971cc9a9fd7ff6ba898ff
tree0511ae97c95b9ba224ea7c2c59863f9a53c4f47f
parent4bd01de8f201abb704ae9bda3af4ea9ba3a10b0a
coccinelle: api: add devm_platform_ioremap_resource script

Use recently introduced devm_platform_ioremap_resource
helper which wraps platform_get_resource() and
devm_ioremap_resource() together. This helps produce much
cleaner code and remove local `struct resource` declaration.

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/coccinelle/api/devm_platform_ioremap_resource.cocci [new file with mode: 0644]