summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-10-27 11:58:47 +0200
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-11-23 18:28:24 +0100
commitc1ac5298867b955e8551bc4a93fcd739ea5db85a (patch)
tree7b75bb2ab3e2d3a87a96adbd215244247c18d300
parente5c51f0bb2e4f68218e49167c63b85f3adcbebfa (diff)
downloadlinux-c1ac5298867b955e8551bc4a93fcd739ea5db85a.tar.gz
linux-c1ac5298867b955e8551bc4a93fcd739ea5db85a.tar.bz2
linux-c1ac5298867b955e8551bc4a93fcd739ea5db85a.zip
media: v4l2-subdev: Fix references to pad config
V4L2 subdev operations have moved from operating on a v4l2_subdev_pad_config to a v4l2_subdev_state a long time ago. Fix the few remaining incorrect references to pad config in the documentation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
-rw-r--r--Documentation/driver-api/media/v4l2-subdev.rst4
-rw-r--r--include/media/v4l2-subdev.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/driver-api/media/v4l2-subdev.rst b/Documentation/driver-api/media/v4l2-subdev.rst
index e56b50b3f203..a62e4aff31be 100644
--- a/Documentation/driver-api/media/v4l2-subdev.rst
+++ b/Documentation/driver-api/media/v4l2-subdev.rst
@@ -562,8 +562,8 @@ device configuration. This is often implemented as e.g. an array of struct
v4l2_mbus_framefmt, one entry for each pad, and similarly for crop and compose
rectangles.
-In addition to the active configuration, each subdev file handle has an array of
-struct v4l2_subdev_pad_config, managed by the V4L2 core, which contains the try
+In addition to the active configuration, each subdev file handle has a struct
+v4l2_subdev_state, managed by the V4L2 core, which contains the try
configuration.
To simplify the subdev drivers the V4L2 subdev API now optionally supports a
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
index bbcee4f3da1e..8a345b5fa39d 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -769,7 +769,7 @@ struct v4l2_subdev_state {
/**
* struct v4l2_subdev_pad_ops - v4l2-subdev pad level operations
*
- * @init_cfg: initialize the pad config to default values
+ * @init_cfg: initialize the subdev state to default values
* @enum_mbus_code: callback for VIDIOC_SUBDEV_ENUM_MBUS_CODE() ioctl handler
* code.
* @enum_frame_size: callback for VIDIOC_SUBDEV_ENUM_FRAME_SIZE() ioctl handler