Commit 69dfe45f authored by Leonid V. Fedorenchik's avatar Leonid V. Fedorenchik Committed by Greg Kroah-Hartman

Staging: cx25821: Change indent with spaces to tabs 1

Changed indent with spaces to use tabs.
Signed-off-by: default avatarLeonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c2c311fd
...@@ -230,14 +230,14 @@ int cx25821_res_get(struct cx25821_dev *dev, struct cx25821_fh *fh, ...@@ -230,14 +230,14 @@ int cx25821_res_get(struct cx25821_dev *dev, struct cx25821_fh *fh,
/* is it free? */ /* is it free? */
mutex_lock(&dev->lock); mutex_lock(&dev->lock);
if (dev->channels[fh->channel_id].resources & bit) { if (dev->channels[fh->channel_id].resources & bit) {
/* no, someone else uses it */ /* no, someone else uses it */
mutex_unlock(&dev->lock); mutex_unlock(&dev->lock);
return 0; return 0;
} }
/* it's free, grab it */ /* it's free, grab it */
fh->resources |= bit; fh->resources |= bit;
dev->channels[fh->channel_id].resources |= bit; dev->channels[fh->channel_id].resources |= bit;
dprintk(1, "res: get %d\n", bit); dprintk(1, "res: get %d\n", bit);
mutex_unlock(&dev->lock); mutex_unlock(&dev->lock);
return 1; return 1;
...@@ -250,7 +250,7 @@ int cx25821_res_check(struct cx25821_fh *fh, unsigned int bit) ...@@ -250,7 +250,7 @@ int cx25821_res_check(struct cx25821_fh *fh, unsigned int bit)
int cx25821_res_locked(struct cx25821_fh *fh, unsigned int bit) int cx25821_res_locked(struct cx25821_fh *fh, unsigned int bit)
{ {
return fh->dev->channels[fh->channel_id].resources & bit; return fh->dev->channels[fh->channel_id].resources & bit;
} }
void cx25821_res_free(struct cx25821_dev *dev, struct cx25821_fh *fh, void cx25821_res_free(struct cx25821_dev *dev, struct cx25821_fh *fh,
...@@ -261,7 +261,7 @@ void cx25821_res_free(struct cx25821_dev *dev, struct cx25821_fh *fh, ...@@ -261,7 +261,7 @@ void cx25821_res_free(struct cx25821_dev *dev, struct cx25821_fh *fh,
mutex_lock(&dev->lock); mutex_lock(&dev->lock);
fh->resources &= ~bits; fh->resources &= ~bits;
dev->channels[fh->channel_id].resources &= ~bits; dev->channels[fh->channel_id].resources &= ~bits;
dprintk(1, "res: put %d\n", bits); dprintk(1, "res: put %d\n", bits);
mutex_unlock(&dev->lock); mutex_unlock(&dev->lock);
} }
...@@ -355,7 +355,7 @@ int cx25821_restart_video_queue(struct cx25821_dev *dev, ...@@ -355,7 +355,7 @@ int cx25821_restart_video_queue(struct cx25821_dev *dev,
buf->vb.state = VIDEOBUF_ACTIVE; buf->vb.state = VIDEOBUF_ACTIVE;
buf->count = q->count++; buf->count = q->count++;
prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
prev->risc.jmp[2] = cpu_to_le32(0); /* Bits 63 - 32 */ prev->risc.jmp[2] = cpu_to_le32(0); /* Bits 63 - 32 */
} else { } else {
return 0; return 0;
} }
...@@ -368,11 +368,11 @@ void cx25821_vid_timeout(unsigned long data) ...@@ -368,11 +368,11 @@ void cx25821_vid_timeout(unsigned long data)
struct cx25821_data *timeout_data = (struct cx25821_data *)data; struct cx25821_data *timeout_data = (struct cx25821_data *)data;
struct cx25821_dev *dev = timeout_data->dev; struct cx25821_dev *dev = timeout_data->dev;
struct sram_channel *channel = timeout_data->channel; struct sram_channel *channel = timeout_data->channel;
struct cx25821_dmaqueue *q = &dev->channels[channel->i].vidq; struct cx25821_dmaqueue *q = &dev->channels[channel->i].vidq;
struct cx25821_buffer *buf; struct cx25821_buffer *buf;
unsigned long flags; unsigned long flags;
/* cx25821_sram_channel_dump(dev, channel); */ /* cx25821_sram_channel_dump(dev, channel); */
cx_clear(channel->dma_ctl, 0x11); cx_clear(channel->dma_ctl, 0x11);
spin_lock_irqsave(&dev->slock, flags); spin_lock_irqsave(&dev->slock, flags);
...@@ -394,7 +394,7 @@ int cx25821_video_irq(struct cx25821_dev *dev, int chan_num, u32 status) ...@@ -394,7 +394,7 @@ int cx25821_video_irq(struct cx25821_dev *dev, int chan_num, u32 status)
u32 count = 0; u32 count = 0;
int handled = 0; int handled = 0;
u32 mask; u32 mask;
struct sram_channel *channel = dev->channels[chan_num].sram_channels; struct sram_channel *channel = dev->channels[chan_num].sram_channels;
mask = cx_read(channel->int_msk); mask = cx_read(channel->int_msk);
if (0 == (status & mask)) if (0 == (status & mask))
...@@ -414,8 +414,8 @@ int cx25821_video_irq(struct cx25821_dev *dev, int chan_num, u32 status) ...@@ -414,8 +414,8 @@ int cx25821_video_irq(struct cx25821_dev *dev, int chan_num, u32 status)
if (status & FLD_VID_DST_RISC1) { if (status & FLD_VID_DST_RISC1) {
spin_lock(&dev->slock); spin_lock(&dev->slock);
count = cx_read(channel->gpcnt); count = cx_read(channel->gpcnt);
cx25821_video_wakeup(dev, cx25821_video_wakeup(dev, &dev->channels[channel->i].vidq,
&dev->channels[channel->i].vidq, count); count);
spin_unlock(&dev->slock); spin_unlock(&dev->slock);
handled++; handled++;
} }
......
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