Skip to content

Commit

Permalink
V4L/DVB (13642): tw9910: The driver can also handle revision 1 of the…
Browse files Browse the repository at this point in the history
… chip

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Kuninori Morimoto authored and Mauro Carvalho Chehab committed Dec 16, 2009
1 parent 247cb14 commit 4a4bc5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/video/tw9910.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,11 +883,12 @@ static int tw9910_video_probe(struct soc_camera_device *icd,

/*
* check and show Product ID
* So far only revisions 0 and 1 have been seen
*/
val = i2c_smbus_read_byte_data(client, ID);

if (0x0B != GET_ID(val) ||
0x00 != GET_ReV(val)) {
0x01 < GET_ReV(val)) {
dev_err(&client->dev,
"Product ID error %x:%x\n", GET_ID(val), GET_ReV(val));
return -ENODEV;
Expand Down

0 comments on commit 4a4bc5e

Please sign in to comment.