diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2023-09-15 14:23:28 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-10-07 11:55:48 +0300 |
commit | 76c0b99d614127ceadcd3563dee4983c20627e09 (patch) | |
tree | 35f97b032b937f1a35dfe248e0a4dca572cc3c1e /drivers/media/i2c/ds90ub913.c | |
parent | 07d81b507df5622db40104c64dace3387bbe23b9 (diff) | |
download | linux-76c0b99d614127ceadcd3563dee4983c20627e09.tar.xz |
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/ds90ub913.c')
-rw-r--r-- | drivers/media/i2c/ds90ub913.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/i2c/ds90ub913.c b/drivers/media/i2c/ds90ub913.c index 4bfa3b3cf619..8e9ebed09f64 100644 --- a/drivers/media/i2c/ds90ub913.c +++ b/drivers/media/i2c/ds90ub913.c @@ -362,8 +362,6 @@ static int ub913_get_frame_desc(struct v4l2_subdev *sd, unsigned int pad, if (ret) return ret; - memset(fd, 0, sizeof(*fd)); - fd->type = V4L2_MBUS_FRAME_DESC_TYPE_PARALLEL; state = v4l2_subdev_lock_and_get_active_state(sd); |