提交 32934486 编写于 作者: L Laurent Pinchart 提交者: Mauro Carvalho Chehab

media: uvcvideo: Fix XU id print in forward scan

An error message in the forward scan code incorrectly prints the ID of
the source entity instead of the XU entity being scanned. Fix it.
Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
上级 33f64381
...@@ -1712,7 +1712,7 @@ static int uvc_scan_chain_forward(struct uvc_video_chain *chain, ...@@ -1712,7 +1712,7 @@ static int uvc_scan_chain_forward(struct uvc_video_chain *chain,
if (forward->bNrInPins != 1) { if (forward->bNrInPins != 1) {
uvc_dbg(chain->dev, DESCR, uvc_dbg(chain->dev, DESCR,
"Extension unit %d has more than 1 input pin\n", "Extension unit %d has more than 1 input pin\n",
entity->id); forward->id);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册