Commit 4a4bc5e4 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mauro Carvalho Chehab

V4L/DVB (13642): tw9910: The driver can also handle revision 1 of the chip

Signed-off-by: default avatarKuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 247cb142
...@@ -883,11 +883,12 @@ static int tw9910_video_probe(struct soc_camera_device *icd, ...@@ -883,11 +883,12 @@ static int tw9910_video_probe(struct soc_camera_device *icd,
/* /*
* check and show Product ID * check and show Product ID
* So far only revisions 0 and 1 have been seen
*/ */
val = i2c_smbus_read_byte_data(client, ID); val = i2c_smbus_read_byte_data(client, ID);
if (0x0B != GET_ID(val) || if (0x0B != GET_ID(val) ||
0x00 != GET_ReV(val)) { 0x01 < GET_ReV(val)) {
dev_err(&client->dev, dev_err(&client->dev,
"Product ID error %x:%x\n", GET_ID(val), GET_ReV(val)); "Product ID error %x:%x\n", GET_ID(val), GET_ReV(val));
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment