aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7164/saa7164-encoder.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-10-11 16:39:06 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 05:55:27 -0400
commitc7e242baf73a284eff92444fb58af11439e3a22c (patch)
treedb1fae0f8d0ff85d0218afe1cc1310ba20a067ba /drivers/media/video/saa7164/saa7164-encoder.c
parent4d270cfb36683f623f2c23f96b695deb1812476e (diff)
[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-encoder.c')
-rw-r--r--drivers/media/video/saa7164/saa7164-encoder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/saa7164/saa7164-encoder.c b/drivers/media/video/saa7164/saa7164-encoder.c
index 28cf223e571f..2e7d2856d39b 100644
--- a/drivers/media/video/saa7164/saa7164-encoder.c
+++ b/drivers/media/video/saa7164/saa7164-encoder.c
@@ -244,7 +244,7 @@ static int vidioc_enum_input(struct file *file, void *priv,
244 if (i->index >= 7) 244 if (i->index >= 7)
245 return -EINVAL; 245 return -EINVAL;
246 246
247 strcpy(i->name, inputs[ i->index ]); 247 strcpy(i->name, inputs[i->index]);
248 248
249 if (i->index == 0) 249 if (i->index == 0)
250 i->type = V4L2_INPUT_TYPE_TUNER; 250 i->type = V4L2_INPUT_TYPE_TUNER;
@@ -361,10 +361,10 @@ static int vidioc_s_frequency(struct file *file, void *priv,
361 361
362 /* Update the hardware */ 362 /* Update the hardware */
363 if (port->nr == SAA7164_PORT_ENC1) 363 if (port->nr == SAA7164_PORT_ENC1)
364 tsport = &dev->ports[ SAA7164_PORT_TS1 ]; 364 tsport = &dev->ports[SAA7164_PORT_TS1];
365 else 365 else
366 if (port->nr == SAA7164_PORT_ENC2) 366 if (port->nr == SAA7164_PORT_ENC2)
367 tsport = &dev->ports[ SAA7164_PORT_TS2 ]; 367 tsport = &dev->ports[SAA7164_PORT_TS2];
368 else 368 else
369 BUG(); 369 BUG();
370 370
@@ -1070,8 +1070,8 @@ static int fops_open(struct file *file)
1070 list_for_each(list, &saa7164_devlist) { 1070 list_for_each(list, &saa7164_devlist) {
1071 h = list_entry(list, struct saa7164_dev, devlist); 1071 h = list_entry(list, struct saa7164_dev, devlist);
1072 1072
1073 portc = &h->ports[ SAA7164_PORT_ENC1 ]; 1073 portc = &h->ports[SAA7164_PORT_ENC1];
1074 portd = &h->ports[ SAA7164_PORT_ENC2 ]; 1074 portd = &h->ports[SAA7164_PORT_ENC2];
1075 1075
1076 if (portc->v4l_device && 1076 if (portc->v4l_device &&
1077 portc->v4l_device->minor == minor) { 1077 portc->v4l_device->minor == minor) {