diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2023-06-13 19:36:27 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-07-28 11:35:57 +0300 |
commit | ec295094673b7c8e2d60945dae6d02378fa9591a (patch) | |
tree | 31444b078eef37ccdbaa1cbd776ae5238408bf57 /Documentation/driver-api | |
parent | 026e6212ec8ba1b4b4bab68a6cce2a164ee6774a (diff) | |
download | linux-ec295094673b7c8e2d60945dae6d02378fa9591a.tar.xz |
media: Documentation: v4l: Fix async notifier registration example
An example adding an async sub-device to a V4L2 async notifier. The name
of the variable in error handling was wrong (asd vs. my_asd).
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> # Renesas RZ/G2L SMARC
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'Documentation/driver-api')
-rw-r--r-- | Documentation/driver-api/media/v4l2-subdev.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/driver-api/media/v4l2-subdev.rst b/Documentation/driver-api/media/v4l2-subdev.rst index 602dadaa81d8..c46511c9b6c8 100644 --- a/Documentation/driver-api/media/v4l2-subdev.rst +++ b/Documentation/driver-api/media/v4l2-subdev.rst @@ -234,8 +234,8 @@ These functions allocate an async sub-device descriptor which is of type struct struct my_async_subdev); fwnode_handle_put(ep); - if (IS_ERR(asd)) - return PTR_ERR(asd); + if (IS_ERR(my_asd)) + return PTR_ERR(my_asd); The V4L2 core will then use these descriptors to match asynchronously registered subdevices to them. If a match is detected the ``.bound()`` |