提交 1b844b53 编写于 作者: E Erik Andrén 提交者: Mauro Carvalho Chehab

V4L/DVB (11692): gspca - m5602: Checkpatch.pl fixes

Signed-off-by: NErik Andrén <erik.andren@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 951872a8
...@@ -113,7 +113,9 @@ int m5602_read_sensor(struct sd *sd, const u8 address, ...@@ -113,7 +113,9 @@ int m5602_read_sensor(struct sd *sd, const u8 address,
if (err < 0) if (err < 0)
return err; return err;
/* Sensors with registers that only are one byte width are differently read */ /* Sensors with registers that are of only
one byte width are differently read */
/* FIXME: This works with the ov9650, but has issues with the po1030 */ /* FIXME: This works with the ov9650, but has issues with the po1030 */
if (sd->sensor->i2c_regW == 1) { if (sd->sensor->i2c_regW == 1) {
err = m5602_write_bridge(sd, M5602_XB_I2C_CTRL, 1); err = m5602_write_bridge(sd, M5602_XB_I2C_CTRL, 1);
......
...@@ -338,7 +338,8 @@ int mt9m111_start(struct sd *sd) ...@@ -338,7 +338,8 @@ int mt9m111_start(struct sd *sd)
(sensor_settings[VFLIP_IDX] << 0) | (sensor_settings[VFLIP_IDX] << 0) |
(sensor_settings[HFLIP_IDX] << 1); (sensor_settings[HFLIP_IDX] << 1);
err = m5602_write_sensor(sd, MT9M111_SC_R_MODE_CONTEXT_B, data, 2); err = m5602_write_sensor(sd,
MT9M111_SC_R_MODE_CONTEXT_B, data, 2);
break; break;
case 320: case 320:
...@@ -348,7 +349,8 @@ int mt9m111_start(struct sd *sd) ...@@ -348,7 +349,8 @@ int mt9m111_start(struct sd *sd)
MT9M111_RMB_COLUMN_SKIP_4X | MT9M111_RMB_COLUMN_SKIP_4X |
(sensor_settings[VFLIP_IDX] << 0) | (sensor_settings[VFLIP_IDX] << 0) |
(sensor_settings[HFLIP_IDX] << 1); (sensor_settings[HFLIP_IDX] << 1);
err = m5602_write_sensor(sd, MT9M111_SC_R_MODE_CONTEXT_B, data, 2); err = m5602_write_sensor(sd,
MT9M111_SC_R_MODE_CONTEXT_B, data, 2);
break; break;
} }
return err; return err;
......
...@@ -280,7 +280,8 @@ static int rotation_thread_function(void *data) ...@@ -280,7 +280,8 @@ static int rotation_thread_function(void *data)
vflip = !vflip; vflip = !vflip;
hflip = !hflip; hflip = !hflip;
} }
s5k83a_set_flip_real((struct gspca_dev *) sd, vflip, hflip); s5k83a_set_flip_real((struct gspca_dev *) sd,
vflip, hflip);
} }
mutex_unlock(&sd->gspca_dev.usb_lock); mutex_unlock(&sd->gspca_dev.usb_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册