summaryrefslogtreecommitdiff
path: root/scripts/coccinelle/api/check_bq27xxx_data.cocci
AgeCommit message (Collapse)Author
2017-11-14coccinelle: api: detect identical chip data arraysJulia Lawall
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>