mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:04:43 +01:00
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>
This commit is contained in:
parent
137000ce88
commit
35392e855a
1 changed files with 0 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue