]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: i2c: max96714: Drop check on number of active routes
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 19 Jun 2025 20:47:12 +0000 (23:47 +0300)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 30 Jun 2025 07:06:21 +0000 (09:06 +0200)
The subdev core now limits the number of active routes to
V4L2_FRAME_DESC_ENTRY_MAX. Drop the duplicated check in the max96714
driver.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/max96714.c

index 3cc1b1ae47d1c9db55297d6d146d223ee61290e7..e3e625e6f11a81243dd0215e40ccdcf7f5d0b2f5 100644 (file)
@@ -370,13 +370,6 @@ static int _max96714_set_routing(struct v4l2_subdev *sd,
        };
        int ret;
 
-       /*
-        * Note: we can only support up to V4L2_FRAME_DESC_ENTRY_MAX, until
-        * frame desc is made dynamically allocated.
-        */
-       if (routing->num_routes > V4L2_FRAME_DESC_ENTRY_MAX)
-               return -EINVAL;
-
        ret = v4l2_subdev_routing_validate(sd, routing,
                                           V4L2_SUBDEV_ROUTING_ONLY_1_TO_1);
        if (ret)