]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: tw9910: Mixed style fixes
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Fri, 2 Mar 2018 14:46:35 +0000 (09:46 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 16:56:38 +0000 (11:56 -0500)
Two minor style fixes, align function parameter and remove un-necessary
spaces.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/tw9910.c

index 2d5cdb94433078058660963448553f0422e0f6f5..7c7f3438781c6857d9c7d30c982fb4bbdda1299e 100644 (file)
@@ -533,9 +533,9 @@ static int tw9910_s_std(struct v4l2_subdev *sd, v4l2_std_id norm)
        }
        if (!ret)
                ret = i2c_smbus_write_byte_data(client, CROP_HI,
-                                               ((vdelay >> 2) & 0xc0) |
-                                               ((vact >> 4) & 0x30) |
-                                               ((hdelay >> 6) & 0x0c) |
+                                               ((vdelay >> 2) & 0xc0)  |
+                                               ((vact >> 4) & 0x30)    |
+                                               ((hdelay >> 6) & 0x0c)  |
                                                ((hact >> 8) & 0x03));
        if (!ret)
                ret = i2c_smbus_write_byte_data(client, VDELAY_LO,
@@ -954,7 +954,7 @@ static int tw9910_probe(struct i2c_client *client,
        if (!priv)
                return -ENOMEM;
 
-       priv->info   = info;
+       priv->info = info;
 
        v4l2_i2c_subdev_init(&priv->subdev, client, &tw9910_subdev_ops);