]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0141274565eded7c47e82b502cfdc2a01aab777
tree0511ae97c95b9ba224ea7c2c59863f9a53c4f47f
parent4a8b9e923f37a50c890cf9c931dab54fa27e487a
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]