提交 e047a0f5 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

V4L/DVB (11679): cafe_ccic: fix sensor detection

Due to an uninitialized chip.ident field the chip identification failed.

Thanks-to: Saeed Bishara <saeed.bishara@gmail.com>
Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 dc47b778
...@@ -774,6 +774,7 @@ static int cafe_cam_init(struct cafe_camera *cam) ...@@ -774,6 +774,7 @@ static int cafe_cam_init(struct cafe_camera *cam)
ret = __cafe_cam_reset(cam); ret = __cafe_cam_reset(cam);
if (ret) if (ret)
goto out; goto out;
chip.ident == V4L2_IDENT_NONE;
chip.match.type = V4L2_CHIP_MATCH_I2C_ADDR; chip.match.type = V4L2_CHIP_MATCH_I2C_ADDR;
chip.match.addr = cam->sensor_addr; chip.match.addr = cam->sensor_addr;
ret = sensor_call(cam, core, g_chip_ident, &chip); ret = sensor_call(cam, core, g_chip_ident, &chip);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册