Skip to content

Commit

Permalink
V4L/DVB: sn9c102: Make hv7131d sensor code also recognize the HV7131E
Browse files Browse the repository at this point in the history
The hv7131d sensor code also works for the hv7131e, this patch changes
it to also recognize the hv7131e sensor id.

Tested-by: Frank Danapfel <fdanapfe@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent 436c2c5 commit f0dbf82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/sn9c102/sn9c102_hv7131d.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ int sn9c102_probe_hv7131d(struct sn9c102_device* cam)
if (err || r0 < 0 || r1 < 0)
return -EIO;

if (r0 != 0x00 || r1 != 0x04)
if ((r0 != 0x00 && r0 != 0x01) || r1 != 0x04)
return -ENODEV;

sn9c102_attach_sensor(cam, &hv7131d);
Expand Down

0 comments on commit f0dbf82

Please sign in to comment.