提交 c41507ba 编写于 作者: L Lukas Karas 提交者: Mauro Carvalho Chehab

V4L/DVB (11634): gspca - m5602-s5k83a: Set the sensor_settings pointer correctly

Signed-off-by: NLukas Karas <lukas.karas@centrum.cz>
Signed-off-by: NErik Andrén <erik.andren@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 cde41bb2
......@@ -199,7 +199,8 @@ int s5k83a_probe(struct sd *sd)
int s5k83a_init(struct sd *sd)
{
int i, err = 0;
s32 *sensor_settings = sd->sensor_priv;
s32 *sensor_settings =
((struct s5k83a_priv *) sd->sensor_priv)->settings;
for (i = 0; i < ARRAY_SIZE(init_s5k83a) && !err; i++) {
u8 data[2] = {0x00, 0x00};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册