aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-02-02 18:49:54 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:35:13 -0500
commitb7a01e723c9edaefcadb99d42c1409371c01dde1 (patch)
tree5f8dec646a38c1171c9eb16bc73396440b20b7f1 /drivers
parentfec1bc71a314507418e65bcd0f232b3b9f36f435 (diff)
V4L/DVB (5180): Fix cx2584x revision reporting.
Revisions >= 23 were always reported as revision 23. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/cx25840/cx25840-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/cx25840/cx25840-core.c b/drivers/media/video/cx25840/cx25840-core.c
index 923577723297..cc535ca713d2 100644
--- a/drivers/media/video/cx25840/cx25840-core.c
+++ b/drivers/media/video/cx25840/cx25840-core.c
@@ -887,9 +887,11 @@ static int cx25840_detect_client(struct i2c_adapter *adapter, int address,
887 return 0; 887 return 0;
888 } 888 }
889 889
890 /* Note: revision '(device_id & 0x0f) == 2' was never built. The
891 marking skips from 0x1 == 22 to 0x3 == 23. */
890 v4l_info(client, "cx25%3x-2%x found @ 0x%x (%s)\n", 892 v4l_info(client, "cx25%3x-2%x found @ 0x%x (%s)\n",
891 (device_id & 0xfff0) >> 4, 893 (device_id & 0xfff0) >> 4,
892 (device_id & 0x0f) < 3 ? (device_id & 0x0f) + 1 : 3, 894 (device_id & 0x0f) < 3 ? (device_id & 0x0f) + 1 : (device_id & 0x0f),
893 address << 1, adapter->name); 895 address << 1, adapter->name);
894 896
895 i2c_set_clientdata(client, state); 897 i2c_set_clientdata(client, state);