media: rkisp1: Save info pointer in rkisp1_device
authorPaul Elder <paul.elder@ideasonboard.com>
Tue, 14 Jun 2022 19:10:39 +0000 (20:10 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 17 Jul 2022 11:00:33 +0000 (12:00 +0100)
commit9125aee770fcdc29c26f33e865df29ebb1ff6484
tree48120cdc0f8f1fffab00f8f4f1db7d3c3d97da5f
parentcdce5b957d5ea5b10251de4d47e2e3d4ff474c58
media: rkisp1: Save info pointer in rkisp1_device

To make it possible to use the rkisp1_info after probe time (for
instance to make code conditional on the ISP version), save it in the
main rkisp1_device structure. To achieve this, also move the info
structure into the common header, and document it.

While at it, drop a NULL check in rkisp1_probe() for the match data as
it can't happen.

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