Skip to content

Commit 7cae112

Browse files
author
Mauro Carvalho Chehab
committed
V4L/DVB: V4L2 docs: replace spaces by tabs
CC: Jonathan Corbet <corbet@lwn.net> CC: Reviewed-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 4b586a3 commit 7cae112

2 files changed

Lines changed: 22 additions & 23 deletions

File tree

‎Documentation/video4linux/v4l2-framework.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,4 +609,3 @@ scatter/gather method (videobuf-dma-sg), DMA with linear access
609609

610610
Please see Documentation/video4linux/videobuf for more information on how
611611
to use the videobuf layer.
612-

‎Documentation/video4linux/videobuf‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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

125125
One 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
138138
videobuf 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
183183
only 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

193193
Either 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
240240
calls. 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

253253
So, for example, a VIDIOC_REQBUFS call turns into a call to the driver's
254254
vidioc_reqbufs() callback which, in turn, usually only needs to locate the

0 commit comments

Comments
 (0)