Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: subdev: Constify v4l2_subdev_set_routing_with_fmt() param

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>

authored by

Tomi Valkeinen and committed by
Mauro Carvalho Chehab
bb05820e bb15c827

+2 -2
+1 -1
drivers/media/v4l2-core/v4l2-subdev.c
··· 1602 1602 1603 1603 int v4l2_subdev_set_routing_with_fmt(struct v4l2_subdev *sd, 1604 1604 struct v4l2_subdev_state *state, 1605 - struct v4l2_subdev_krouting *routing, 1605 + const struct v4l2_subdev_krouting *routing, 1606 1606 const struct v4l2_mbus_framefmt *fmt) 1607 1607 { 1608 1608 struct v4l2_subdev_stream_configs *stream_configs;
+1 -1
include/media/v4l2-subdev.h
··· 1535 1535 */ 1536 1536 int v4l2_subdev_set_routing_with_fmt(struct v4l2_subdev *sd, 1537 1537 struct v4l2_subdev_state *state, 1538 - struct v4l2_subdev_krouting *routing, 1538 + const struct v4l2_subdev_krouting *routing, 1539 1539 const struct v4l2_mbus_framefmt *fmt); 1540 1540 1541 1541 /**