summaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle/api/check_bq27xxx_data.cocci
Commit message (Collapse)AuthorAgeFilesLines
* coccinelle: api: detect identical chip data arraysJulia Lawall2017-11-141-0/+161
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>