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

[media] media/i2c: fill in missing reg->size fields

Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Acked-by: NLad, Prabhakar <prabhakar.csengg@gmail.com>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 43aea901
......@@ -69,6 +69,7 @@ static int ak881x_g_register(struct v4l2_subdev *sd,
if (reg->reg > 0x26)
return -EINVAL;
reg->size = 1;
reg->val = reg_read(client, reg->reg);
if (reg->val > 0xffff)
......
......@@ -398,6 +398,7 @@ static int mt9t031_g_register(struct v4l2_subdev *sd,
if (reg->reg > 0xff)
return -EINVAL;
reg->size = 1;
reg->val = reg_read(client, reg->reg);
if (reg->val > 0xffff)
......
......@@ -527,6 +527,7 @@ static int tw9910_g_register(struct v4l2_subdev *sd,
if (reg->reg > 0xff)
return -EINVAL;
reg->size = 1;
ret = i2c_smbus_read_byte_data(client, reg->reg);
if (ret < 0)
return ret;
......
......@@ -722,6 +722,7 @@ static int tvp7002_g_register(struct v4l2_subdev *sd,
ret = tvp7002_read(sd, reg->reg & 0xff, &val);
reg->val = val;
reg->size = 1;
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册