diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2023-09-15 13:23:28 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-10-07 10:55:48 +0200 |
commit | 76c0b99d614127ceadcd3563dee4983c20627e09 (patch) | |
tree | 35f97b032b937f1a35dfe248e0a4dca572cc3c1e /drivers/media/i2c/ds90ub960.c | |
parent | media: ov2740: Return -EPROBE_DEFER if no endpoint is found (diff) | |
download | linux-76c0b99d614127ceadcd3563dee4983c20627e09.tar.xz linux-76c0b99d614127ceadcd3563dee4983c20627e09.zip |
media: v4l: subdev: Clear frame descriptor before get_frame_desc
Clear frame descriptor before calling transmitter's get_frame_desc() op.
Also remove the corresponding memset() calls from drivers.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/i2c/ds90ub960.c')
-rw-r--r-- | drivers/media/i2c/ds90ub960.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/i2c/ds90ub960.c b/drivers/media/i2c/ds90ub960.c index 8ba5750f5a23..b8f3e5ca03ef 100644 --- a/drivers/media/i2c/ds90ub960.c +++ b/drivers/media/i2c/ds90ub960.c @@ -2786,8 +2786,6 @@ static int ub960_get_frame_desc(struct v4l2_subdev *sd, unsigned int pad, if (!ub960_pad_is_source(priv, pad)) return -EINVAL; - memset(fd, 0, sizeof(*fd)); - fd->type = V4L2_MBUS_FRAME_DESC_TYPE_CSI2; state = v4l2_subdev_lock_and_get_active_state(&priv->sd); |