media: rkisp1: capture: Bypass the main device for handling querycap
authorPaul Elder <paul.elder@ideasonboard.com>
Tue, 22 Feb 2022 08:52:07 +0000 (08:52 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 27 Jun 2022 07:39:05 +0000 (08:39 +0100)
commit3d91b856ae69bcea2a5ec4046531926a3b86557d
treea09200d52e05d624195947def6442642abdd4786
parenta124765f8781a75df6c491bd04a0389ce078454c
media: rkisp1: capture: Bypass the main device for handling querycap

When handling querycap, the capture node would access the main rkisp1
device unnecessarily. Get the information from the most direct source.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c