Commit 55c37c0d authored by Leonid V. Fedorenchik's avatar Leonid V. Fedorenchik Committed by Greg Kroah-Hartman

Staging: cx25821: Change indent with spaces to tabs 13

Change indent with spaces to tabs.
Signed-off-by: default avatarLeonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 20e8a366
...@@ -882,41 +882,41 @@ static ssize_t video_read(struct file *file, char __user * data, size_t count, ...@@ -882,41 +882,41 @@ static ssize_t video_read(struct file *file, char __user * data, size_t count,
static unsigned int video_poll(struct file *file, static unsigned int video_poll(struct file *file,
struct poll_table_struct *wait) struct poll_table_struct *wait)
{ {
struct cx25821_fh *fh = file->private_data; struct cx25821_fh *fh = file->private_data;
struct cx25821_buffer *buf; struct cx25821_buffer *buf;
if (cx25821_res_check(fh, RESOURCE_VIDEO0)) { if (cx25821_res_check(fh, RESOURCE_VIDEO0)) {
/* streaming capture */ /* streaming capture */
if (list_empty(&fh->vidq.stream)) if (list_empty(&fh->vidq.stream))
return POLLERR; return POLLERR;
buf = list_entry(fh->vidq.stream.next, buf = list_entry(fh->vidq.stream.next,
struct cx25821_buffer, vb.stream); struct cx25821_buffer, vb.stream);
} else { } else {
/* read() capture */ /* read() capture */
buf = (struct cx25821_buffer *)fh->vidq.read_buf; buf = (struct cx25821_buffer *)fh->vidq.read_buf;
if (NULL == buf) if (NULL == buf)
return POLLERR; return POLLERR;
} }
poll_wait(file, &buf->vb.done, wait); poll_wait(file, &buf->vb.done, wait);
if (buf->vb.state == VIDEOBUF_DONE || buf->vb.state == VIDEOBUF_ERROR) { if (buf->vb.state == VIDEOBUF_DONE || buf->vb.state == VIDEOBUF_ERROR) {
if (buf->vb.state == VIDEOBUF_DONE) { if (buf->vb.state == VIDEOBUF_DONE) {
struct cx25821_dev *dev = fh->dev; struct cx25821_dev *dev = fh->dev;
if (dev && dev->channels[fh->channel_id] if (dev && dev->channels[fh->channel_id]
.use_cif_resolution) { .use_cif_resolution) {
u8 cam_id = *((char *)buf->vb.baddr + 3); u8 cam_id = *((char *)buf->vb.baddr + 3);
memcpy((char *)buf->vb.baddr, memcpy((char *)buf->vb.baddr,
(char *)buf->vb.baddr + (fh->width * 2), (char *)buf->vb.baddr + (fh->width * 2),
(fh->width * 2)); (fh->width * 2));
*((char *)buf->vb.baddr + 3) = cam_id; *((char *)buf->vb.baddr + 3) = cam_id;
} }
} }
return POLLIN | POLLRDNORM; return POLLIN | POLLRDNORM;
} }
return 0; return 0;
} }
static int video_release(struct file *file) static int video_release(struct file *file)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment