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: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Laurent Pinchart 2021-02-21 22:11:50 +01:00 коммит произвёл Mauro Carvalho Chehab
Родитель 33f643817f
Коммит 3293448632
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
} }