From 4803552466754b0c1d796b1dc7632b99e8f87376 Mon Sep 17 00:00:00 2001 From: Marcus Glocker Date: Fri, 20 May 2016 19:25:54 +0000 Subject: Fix pasto; v4l2_buf.flags = V4L2_MEMORY_MMAP -> V4L2_BUF_FLAG_MAPPED. From Patrick Keshishian, thanks! --- sys/dev/usb/uvideo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index c083bc33169..d27346f63a1 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.185 2016/05/17 08:27:17 kettenis Exp $ */ +/* $OpenBSD: uvideo.c,v 1.186 2016/05/20 19:25:53 mglocker Exp $ */ /* * Copyright (c) 2008 Robert Nagy @@ -3202,7 +3202,7 @@ uvideo_reqbufs(void *v, struct v4l2_requestbuffers *rb) sc->sc_mmap[i].v4l2_buf.sequence = 0; sc->sc_mmap[i].v4l2_buf.field = V4L2_FIELD_NONE; sc->sc_mmap[i].v4l2_buf.memory = V4L2_MEMORY_MMAP; - sc->sc_mmap[i].v4l2_buf.flags = V4L2_MEMORY_MMAP; + sc->sc_mmap[i].v4l2_buf.flags = V4L2_BUF_FLAG_MAPPED; DPRINTF(1, "%s: %s: index=%d, offset=%d, length=%d\n", DEVNAME(sc), __func__, -- cgit v1.2.3