cocci: Add spatch/coccinelle patches for driver porting

This is an impartial set of transformations to help port the drivers to
the new interfaces.
This commit is contained in:
Benjamin Berg
2019-07-03 23:51:58 +02:00
parent 4640e3f5b0
commit 6ec11a2b26
13 changed files with 1356 additions and 0 deletions

9
cocci/apply-all Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
pushd $( dirname "$0" )
all="all.cocci"
real="/tmp/real.cocci"
cat "$all" | grep -P '^(?!#).+' | xargs cat >$real || exit 1
popd
spatch --sp-file $real "$@"