Skip to content

Commit c9adcb7

Browse files
Hans Verkuilmchehab
authored andcommitted
[media] saa7146: fix compile warning
Fall-out from the recent struct v4l2_framebuffer change. drivers/media/common/saa7146/saa7146_fops.c: In function ‘saa7146_vv_init’: drivers/media/common/saa7146/saa7146_fops.c:536:6: warning: assignment from incompatible pointer type [enabled by default] fmt = &vv->ov_fb.fmt; ^ Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
1 parent 7fcec4c commit c9adcb7

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

‎drivers/media/common/saa7146/saa7146_fops.c‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -533,13 +533,12 @@ int saa7146_vv_init(struct saa7146_dev* dev, struct saa7146_ext_vv *ext_vv)
533533
if (dev->ext_vv_data->capabilities & V4L2_CAP_VBI_CAPTURE)
534534
saa7146_vbi_uops.init(dev,vv);
535535

536-
fmt = &vv->ov_fb.fmt;
537-
fmt->width = vv->standard->h_max_out;
538-
fmt->height = vv->standard->v_max_out;
539-
fmt->pixelformat = V4L2_PIX_FMT_RGB565;
540-
fmt->bytesperline = 2 * fmt->width;
541-
fmt->sizeimage = fmt->bytesperline * fmt->height;
542-
fmt->colorspace = V4L2_COLORSPACE_SRGB;
536+
vv->ov_fb.fmt.width = vv->standard->h_max_out;
537+
vv->ov_fb.fmt.height = vv->standard->v_max_out;
538+
vv->ov_fb.fmt.pixelformat = V4L2_PIX_FMT_RGB565;
539+
vv->ov_fb.fmt.bytesperline = 2 * vv->ov_fb.fmt.width;
540+
vv->ov_fb.fmt.sizeimage = vv->ov_fb.fmt.bytesperline * vv->ov_fb.fmt.height;
541+
vv->ov_fb.fmt.colorspace = V4L2_COLORSPACE_SRGB;
543542

544543
fmt = &vv->video_fmt;
545544
fmt->width = 384;

0 commit comments

Comments
 (0)