]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6531c99df061d17ee7f41bc75e3146bab098c958
tree48120cdc0f8f1fffab00f8f4f1db7d3c3d97da5f
parentaf99f1c6eba87d725c8c3e2e2157d9fc99e85afa
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