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

Configure Feed

Select the types of activity you want to include in your feed.

media: i2c: ds90ub953: 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 ds90ub953
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
a3e3fcff 5fe20403

-8
-8
drivers/media/i2c/ds90ub953.c
··· 399 399 }; 400 400 int ret; 401 401 402 - /* 403 - * Note: we can only support up to V4L2_FRAME_DESC_ENTRY_MAX, until 404 - * frame desc is made dynamically allocated. 405 - */ 406 - 407 - if (routing->num_routes > V4L2_FRAME_DESC_ENTRY_MAX) 408 - return -EINVAL; 409 - 410 402 ret = v4l2_subdev_routing_validate(sd, routing, 411 403 V4L2_SUBDEV_ROUTING_ONLY_1_TO_1); 412 404 if (ret)