summaryrefslogtreecommitdiff
path: root/drivers/media/usb/gspca/vc032x.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-05-12 17:44:00 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-28 22:57:17 +0300
commit1f5965c4dfd7665f2914a1f1095dcc6020656b04 (patch)
tree531462341750f55ef66498336b08a07c5b9de454 /drivers/media/usb/gspca/vc032x.c
parent90b2da89a083e1395cb322521a42397c49ae4500 (diff)
downloadlinux-1f5965c4dfd7665f2914a1f1095dcc6020656b04.tar.xz
media: gspca: convert to vb2
The gspca core has its own buffere implementation. Use the core VB 2 instead. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/gspca/vc032x.c')
-rw-r--r--drivers/media/usb/gspca/vc032x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/gspca/vc032x.c b/drivers/media/usb/gspca/vc032x.c
index 6b11597977c9..52d071659634 100644
--- a/drivers/media/usb/gspca/vc032x.c
+++ b/drivers/media/usb/gspca/vc032x.c
@@ -3642,7 +3642,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
int size, l;
l = gspca_dev->image_len;
- size = gspca_dev->frsz;
+ size = gspca_dev->pixfmt.sizeimage;
if (len > size - l)
len = size - l;
}