diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-11 17:39:06 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-21 07:55:27 -0200 |
commit | c7e242baf73a284eff92444fb58af11439e3a22c (patch) | |
tree | db1fae0f8d0ff85d0218afe1cc1310ba20a067ba /drivers/media/video/saa7164/saa7164-vbi.c | |
parent | 4d270cfb36683f623f2c23f96b695deb1812476e (diff) | |
download | op-kernel-dev-c7e242baf73a284eff92444fb58af11439e3a22c.zip op-kernel-dev-c7e242baf73a284eff92444fb58af11439e3a22c.tar.gz |
[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>
Diffstat (limited to 'drivers/media/video/saa7164/saa7164-vbi.c')
-rw-r--r-- | drivers/media/video/saa7164/saa7164-vbi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/saa7164/saa7164-vbi.c b/drivers/media/video/saa7164/saa7164-vbi.c index 6f6ea52..651f404 100644 --- a/drivers/media/video/saa7164/saa7164-vbi.c +++ b/drivers/media/video/saa7164/saa7164-vbi.c @@ -218,7 +218,7 @@ static int vidioc_enum_input(struct file *file, void *priv, if (i->index >= 7) return -EINVAL; - strcpy(i->name, inputs[ i->index ]); + strcpy(i->name, inputs[i->index]); if (i->index == 0) i->type = V4L2_INPUT_TYPE_TUNER; @@ -335,10 +335,10 @@ static int vidioc_s_frequency(struct file *file, void *priv, /* Update the hardware */ if (port->nr == SAA7164_PORT_VBI1) - tsport = &dev->ports[ SAA7164_PORT_TS1 ]; + tsport = &dev->ports[SAA7164_PORT_TS1]; else if (port->nr == SAA7164_PORT_VBI2) - tsport = &dev->ports[ SAA7164_PORT_TS2 ]; + tsport = &dev->ports[SAA7164_PORT_TS2]; else BUG(); @@ -1017,8 +1017,8 @@ static int fops_open(struct file *file) list_for_each(list, &saa7164_devlist) { h = list_entry(list, struct saa7164_dev, devlist); - porte = &h->ports[ SAA7164_PORT_VBI1 ]; - portf = &h->ports[ SAA7164_PORT_VBI2 ]; + porte = &h->ports[SAA7164_PORT_VBI1]; + portf = &h->ports[SAA7164_PORT_VBI2]; if (porte->v4l_device && porte->v4l_device->minor == minor) { |