media: v4l: subdev: Store the sub-device in the sub-device state
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 13 Oct 2023 07:15:48 +0000 (09:15 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 23 Nov 2023 17:30:41 +0000 (18:30 +0100)
commit52c2575db8faa1d93227a92a32deb2cd66b96614
treee70b797ba47efbefedaeb5304aed1c886a983140
parentaeb18af18828f65eebb3dc475c62faab9cc8e9b6
media: v4l: subdev: Store the sub-device in the sub-device state

Store the sub-device in the sub-device state. This will be needed in e.g.
validating pad number when retrieving information for non-stream-aware
users. There are expected to be more needs for this in the future.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-subdev.c
include/media/v4l2-subdev.h