media: Documentation: v4l: Fix async notifier registration example
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 13 Jun 2023 16:36:27 +0000 (18:36 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 28 Jul 2023 08:35:57 +0000 (10:35 +0200)
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>
Documentation/driver-api/media/v4l2-subdev.rst

index 602dadaa81d863a0904e27e005b8b887e08ef33c..c46511c9b6c874ac97b956796aa6fa52e782f281 100644 (file)
@@ -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()``