coccinelle: api: detect identical chip data arrays
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 8 Oct 2017 19:18:41 +0000 (21:18 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 14 Nov 2017 14:19:03 +0000 (23:19 +0900)
commita44b86645a4a173a45e57d127ac037e88750ea6a
tree1e8cf58defd03f11393ab8f28b58ac6db55ebbef
parent1b18d05c7c204a59e0ac66cbfa813a7173c4426e
coccinelle: api: detect identical chip data arrays

This semantic patch detects duplicate arrays declared using BQ27XXX_DATA
within a single structure.  It is currently specific to the file
drivers/power/supply/bq27xxx_battery.c.  Nevertheless, having the script in
the kernel will allow others to check their code if the data structures
change in the future.

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