[PATCH] v4l: 800: whitespace cleanups
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / media / video / tuner-core.c
index 44fa1423c1a9f6e5fca506fa2429935a321a0d5e..e677869afcf3e21a041898cc0a804e3e82ec0667 100644 (file)
@@ -432,23 +432,23 @@ static int tuner_detach(struct i2c_client *client)
 
 static inline int set_mode(struct i2c_client *client, struct tuner *t, int mode, char *cmd)
 {
-       if (mode == t->mode)
-               return 0;
-
-       t->mode = mode;
-
-       if (check_mode(t, cmd) == EINVAL) {
-               t->mode = T_STANDBY;
-               if (t->standby)
-                       t->standby (client);
-               return EINVAL;
-       }
-       return 0;
+       if (mode == t->mode)
+               return 0;
+
+       t->mode = mode;
+
+       if (check_mode(t, cmd) == EINVAL) {
+               t->mode = T_STANDBY;
+               if (t->standby)
+                       t->standby (client);
+               return EINVAL;
+       }
+       return 0;
 }
 
 #define switch_v4l2()  if (!t->using_v4l2) \
-                           tuner_dbg("switching to v4l2\n"); \
-                       t->using_v4l2 = 1;
+                           tuner_dbg("switching to v4l2\n"); \
+                       t->using_v4l2 = 1;
 
 static inline int check_v4l2(struct tuner *t)
 {
@@ -623,7 +623,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
                        switch_v4l2();
                        if (V4L2_TUNER_RADIO == f->type &&
                            V4L2_TUNER_RADIO != t->mode) {
-                               if (set_mode (client, t, f->type, "VIDIOC_S_FREQUENCY")
+                               if (set_mode (client, t, f->type, "VIDIOC_S_FREQUENCY")
                                            == EINVAL)
                                        return 0;
                        }