@@ -112,15 +112,15 @@ then pass it to the appropriate free routine(s):
112112
113113 /* Scatter/gather drivers */
114114 int videobuf_dma_unmap(struct videobuf_queue *q,
115- struct videobuf_dmabuf *dma);
115+ struct videobuf_dmabuf *dma);
116116 int videobuf_dma_free(struct videobuf_dmabuf *dma);
117117
118118 /* vmalloc drivers */
119119 void videobuf_vmalloc_free (struct videobuf_buffer *buf);
120120
121121 /* Contiguous drivers */
122122 void videobuf_dma_contig_free(struct videobuf_queue *q,
123- struct videobuf_buffer *buf);
123+ struct videobuf_buffer *buf);
124124
125125One way to ensure that a buffer is no longer under I/O is to pass it to:
126126
@@ -138,21 +138,21 @@ first step is in the open() function, which must initialize the
138138videobuf queue. The function to use depends on the type of buffer used:
139139
140140 void videobuf_queue_sg_init(struct videobuf_queue *q,
141- struct videobuf_queue_ops *ops,
142- struct device *dev,
143- spinlock_t *irqlock,
144- enum v4l2_buf_type type,
145- enum v4l2_field field,
146- unsigned int msize,
147- void *priv);
141+ struct videobuf_queue_ops *ops,
142+ struct device *dev,
143+ spinlock_t *irqlock,
144+ enum v4l2_buf_type type,
145+ enum v4l2_field field,
146+ unsigned int msize,
147+ void *priv);
148148
149149 void videobuf_queue_vmalloc_init(struct videobuf_queue *q,
150- struct videobuf_queue_ops *ops,
151- struct device *dev,
152- spinlock_t *irqlock,
153- enum v4l2_buf_type type,
154- enum v4l2_field field,
155- unsigned int msize,
150+ struct videobuf_queue_ops *ops,
151+ struct device *dev,
152+ spinlock_t *irqlock,
153+ enum v4l2_buf_type type,
154+ enum v4l2_field field,
155+ unsigned int msize,
156156 void *priv);
157157
158158 void videobuf_queue_dma_contig_init(struct videobuf_queue *q,
@@ -183,11 +183,11 @@ easy to do that with the same code. To implement read(), the driver need
183183only make a call to one of:
184184
185185 ssize_t videobuf_read_one(struct videobuf_queue *q,
186- char __user *data, size_t count,
186+ char __user *data, size_t count,
187187 loff_t *ppos, int nonblocking);
188188
189189 ssize_t videobuf_read_stream(struct videobuf_queue *q,
190- char __user *data, size_t count,
190+ char __user *data, size_t count,
191191 loff_t *ppos, int vbihack, int nonblocking);
192192
193193Either one of these functions will read frame data into data, returning the
@@ -240,15 +240,15 @@ the many ioctl() commands made available to user space. A number of these
240240calls. The relevant helper functions are:
241241
242242 int videobuf_reqbufs(struct videobuf_queue *q,
243- struct v4l2_requestbuffers *req);
243+ struct v4l2_requestbuffers *req);
244244 int videobuf_querybuf(struct videobuf_queue *q, struct v4l2_buffer *b);
245245 int videobuf_qbuf(struct videobuf_queue *q, struct v4l2_buffer *b);
246- int videobuf_dqbuf(struct videobuf_queue *q, struct v4l2_buffer *b,
247- int nonblocking);
246+ int videobuf_dqbuf(struct videobuf_queue *q, struct v4l2_buffer *b,
247+ int nonblocking);
248248 int videobuf_streamon(struct videobuf_queue *q);
249249 int videobuf_streamoff(struct videobuf_queue *q);
250- int videobuf_cgmbuf(struct videobuf_queue *q, struct video_mbuf *mbuf,
251- int count);
250+ int videobuf_cgmbuf(struct videobuf_queue *q, struct video_mbuf *mbuf,
251+ int count);
252252
253253So, for example, a VIDIOC_REQBUFS call turns into a call to the driver's
254254vidioc_reqbufs() callback which, in turn, usually only needs to locate the
0 commit comments