[media] saa7134: Fix lots os spaces at the wrong places
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 11 Oct 2010 20:39:06 +0000 (17:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 09:55:27 +0000 (07:55 -0200)
commitc7e242baf73a284eff92444fb58af11439e3a22c
treedb1fae0f8d0ff85d0218afe1cc1310ba20a067ba
parent4d270cfb36683f623f2c23f96b695deb1812476e
[media] saa7134: Fix lots os spaces at the wrong places

There are lots of checkpatch complains about:

ERROR: space prohibited after that open parenthesis '('
ERROR: space prohibited after that open square bracket '['
ERROR: space prohibited before that close parenthesis ')'
ERROR: space prohibited before that close square bracket ']'

This script should fix all of them:

for i in drivers/media/video/saa7164/*.[ch]; do cat $i|perl -ne 's/\[\ +(.*)/[$1/; s/\ +\]/$1\]/g; s/\(\ +(.*)/($1/g; s/\ +\)/$1)/g; print $_;' >a && mv a $i; done

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7164/saa7164-api.c
drivers/media/video/saa7164/saa7164-core.c
drivers/media/video/saa7164/saa7164-encoder.c
drivers/media/video/saa7164/saa7164-types.h
drivers/media/video/saa7164/saa7164-vbi.c
drivers/media/video/saa7164/saa7164.h