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: ds90ub913: 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 ds90ub913
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
5fe20403 43f661a7

-8
-8
drivers/media/i2c/ds90ub913.c
··· 337 337 unsigned int i; 338 338 int ret; 339 339 340 - /* 341 - * Note: we can only support up to V4L2_FRAME_DESC_ENTRY_MAX, until 342 - * frame desc is made dynamically allocated. 343 - */ 344 - 345 - if (routing->num_routes > V4L2_FRAME_DESC_ENTRY_MAX) 346 - return -EINVAL; 347 - 348 340 ret = v4l2_subdev_routing_validate(sd, routing, 349 341 V4L2_SUBDEV_ROUTING_ONLY_1_TO_1); 350 342 if (ret)