media: subdev: Constify v4l2_subdev_set_routing_with_fmt() param
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 19 Jun 2023 11:27:06 +0000 (13:27 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:38 +0000 (07:58 +0200)
The routing parameter of v4l2_subdev_set_routing_with_fmt() is missing
'const'. Add it.

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

index c720c9ea899e48e0816bb3a5e2a2c25d06cdbef1..ec35e5a90cdf1cb04b4773099060d3c438413c26 100644 (file)
@@ -1602,7 +1602,7 @@ EXPORT_SYMBOL_GPL(__v4l2_subdev_next_active_route);
 
 int v4l2_subdev_set_routing_with_fmt(struct v4l2_subdev *sd,
                                     struct v4l2_subdev_state *state,
-                                    struct v4l2_subdev_krouting *routing,
+                                    const struct v4l2_subdev_krouting *routing,
                                     const struct v4l2_mbus_framefmt *fmt)
 {
        struct v4l2_subdev_stream_configs *stream_configs;
index a012741cc876f01dd319602990b9051b5f178b34..d9fca929c10b531768342860efa71bee4d5bf4dd 100644 (file)
@@ -1535,7 +1535,7 @@ __v4l2_subdev_next_active_route(const struct v4l2_subdev_krouting *routing,
  */
 int v4l2_subdev_set_routing_with_fmt(struct v4l2_subdev *sd,
                                     struct v4l2_subdev_state *state,
-                                    struct v4l2_subdev_krouting *routing,
+                                    const struct v4l2_subdev_krouting *routing,
                                     const struct v4l2_mbus_framefmt *fmt);
 
 /**