]> 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)
commitcea5a81131f61b51817de570340cda4319dd10cf
tree0511ae97c95b9ba224ea7c2c59863f9a53c4f47f
parentc32d5c8174f52a521d446c9fa740bcf15e292fc8
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]