OSDN Git Service

media: staging: media: atomisp: Minor code style changes
authorMartiros Shakhzadyan <vrzh@vrzh.net>
Tue, 13 Apr 2021 18:03:13 +0000 (20:03 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 May 2021 09:36:35 +0000 (11:36 +0200)
Fixed line continuation and parenthesis alignment issues.

Signed-off-by: Martiros Shakhzadyan <vrzh@vrzh.net>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c

index 912eada..90a985e 100644 (file)
@@ -49,8 +49,8 @@ static int ov2722_read_reg(struct i2c_client *client,
                return -ENODEV;
        }
 
-       if (data_length != OV2722_8BIT && data_length != OV2722_16BIT
-           && data_length != OV2722_32BIT) {
+       if (data_length != OV2722_8BIT && data_length != OV2722_16BIT &&
+           data_length != OV2722_32BIT) {
                dev_err(&client->dev, "%s error, invalid data length\n",
                        __func__);
                return -EINVAL;
@@ -212,8 +212,8 @@ static int __ov2722_buf_reg_array(struct i2c_client *client,
 }
 
 static int __ov2722_write_reg_is_consecutive(struct i2c_client *client,
-       struct ov2722_write_ctrl *ctrl,
-       const struct ov2722_reg *next)
+                                            struct ov2722_write_ctrl *ctrl,
+                                            const struct ov2722_reg *next)
 {
        if (ctrl->index == 0)
                return 1;