aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@brturbo.com.br>2005-11-09 00:37:43 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:20 -0500
commit4ac97914c6c35f6bf132071c718e034d0846b9f5 (patch)
tree98c7eb827bb8ba99730ed89d32703a30448fd813 /drivers/media/video/tuner-core.c
parenta8900fc242406f25f315190a6d650f1d54617c2f (diff)
[PATCH] v4l: 800: whitespace cleanups
- Whitespace Cleanups. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r--drivers/media/video/tuner-core.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 44fa1423c1a..e677869afcf 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -432,23 +432,23 @@ static int tuner_detach(struct i2c_client *client)
432 432
433static inline int set_mode(struct i2c_client *client, struct tuner *t, int mode, char *cmd) 433static inline int set_mode(struct i2c_client *client, struct tuner *t, int mode, char *cmd)
434{ 434{
435 if (mode == t->mode) 435 if (mode == t->mode)
436 return 0; 436 return 0;
437 437
438 t->mode = mode; 438 t->mode = mode;
439 439
440 if (check_mode(t, cmd) == EINVAL) { 440 if (check_mode(t, cmd) == EINVAL) {
441 t->mode = T_STANDBY; 441 t->mode = T_STANDBY;
442 if (t->standby) 442 if (t->standby)
443 t->standby (client); 443 t->standby (client);
444 return EINVAL; 444 return EINVAL;
445 } 445 }
446 return 0; 446 return 0;
447} 447}
448 448
449#define switch_v4l2() if (!t->using_v4l2) \ 449#define switch_v4l2() if (!t->using_v4l2) \
450 tuner_dbg("switching to v4l2\n"); \ 450 tuner_dbg("switching to v4l2\n"); \
451 t->using_v4l2 = 1; 451 t->using_v4l2 = 1;
452 452
453static inline int check_v4l2(struct tuner *t) 453static inline int check_v4l2(struct tuner *t)
454{ 454{
@@ -623,7 +623,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
623 switch_v4l2(); 623 switch_v4l2();
624 if (V4L2_TUNER_RADIO == f->type && 624 if (V4L2_TUNER_RADIO == f->type &&
625 V4L2_TUNER_RADIO != t->mode) { 625 V4L2_TUNER_RADIO != t->mode) {
626 if (set_mode (client, t, f->type, "VIDIOC_S_FREQUENCY") 626 if (set_mode (client, t, f->type, "VIDIOC_S_FREQUENCY")
627 == EINVAL) 627 == EINVAL)
628 return 0; 628 return 0;
629 } 629 }