projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74cab31
)
V4L/DVB (5356): Fix bogus error messages in ivtv for VIDIOC_G_CHIP_IDENT
author
Hans Verkuil
<hverkuil@xs4all.nl>
Fri, 27 Apr 2007 15:31:27 +0000
(12:31 -0300)
committer
Mauro Carvalho Chehab
<mchehab@infradead.org>
Fri, 27 Apr 2007 18:43:51 +0000
(15:43 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-i2c.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/ivtv/ivtv-i2c.c
b/drivers/media/video/ivtv/ivtv-i2c.c
index 17353415b0a35ec96b21f562eb7c43b79750bbdf..07c7ed0fe445e0ce157326aaa3a3c7da483c472f 100644
(file)
--- a/
drivers/media/video/ivtv/ivtv-i2c.c
+++ b/
drivers/media/video/ivtv/ivtv-i2c.c
@@
-567,7
+567,8
@@
int ivtv_call_i2c_client(struct ivtv *itv, int addr, unsigned int cmd, void *arg
return retval;
}
}
- IVTV_ERR("i2c addr 0x%02x not found for command 0x%x!\n", addr, cmd);
+ if (cmd != VIDIOC_G_CHIP_IDENT)
+ IVTV_ERR("i2c addr 0x%02x not found for command 0x%x!\n", addr, cmd);
return -ENODEV;
}
@@
-652,7
+653,8
@@
int ivtv_i2c_id(struct ivtv *itv, u32 id, unsigned int cmd, void *arg)
addr = ivtv_i2c_id_addr(itv, id);
if (addr < 0) {
- IVTV_ERR("i2c ID 0x%08x (%s) not found for command 0x%x!\n",
+ if (cmd != VIDIOC_G_CHIP_IDENT)
+ IVTV_ERR("i2c ID 0x%08x (%s) not found for command 0x%x!\n",
id, ivtv_i2c_id_name(id), cmd);
return addr;
}