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: ds90ub960: 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 ds90ub960
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
137000ce a3e3fcff

-8
-8
drivers/media/i2c/ds90ub960.c
··· 3861 3861 }; 3862 3862 int ret; 3863 3863 3864 - /* 3865 - * Note: we can only support up to V4L2_FRAME_DESC_ENTRY_MAX, until 3866 - * frame desc is made dynamically allocated. 3867 - */ 3868 - 3869 - if (routing->num_routes > V4L2_FRAME_DESC_ENTRY_MAX) 3870 - return -E2BIG; 3871 - 3872 3864 ret = v4l2_subdev_routing_validate(sd, routing, 3873 3865 V4L2_SUBDEV_ROUTING_ONLY_1_TO_1 | 3874 3866 V4L2_SUBDEV_ROUTING_NO_SINK_STREAM_MIX);