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

media: i2c: max96714: Drop check on number of active routes

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>

authored by

Laurent Pinchart and committed by
Hans Verkuil
35392e85 137000ce

-7
-7
drivers/media/i2c/max96714.c
··· 370 370 }; 371 371 int ret; 372 372 373 - /* 374 - * Note: we can only support up to V4L2_FRAME_DESC_ENTRY_MAX, until 375 - * frame desc is made dynamically allocated. 376 - */ 377 - if (routing->num_routes > V4L2_FRAME_DESC_ENTRY_MAX) 378 - return -EINVAL; 379 - 380 373 ret = v4l2_subdev_routing_validate(sd, routing, 381 374 V4L2_SUBDEV_ROUTING_ONLY_1_TO_1); 382 375 if (ret)