Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268450
b: refs/heads/master
c: 70e7f14
h: refs/heads/master
v: v3
  • Loading branch information
Leonid V. Fedorenchik authored and Greg Kroah-Hartman committed Sep 16, 2011
1 parent 8df959d commit 2e23fdc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f9a8150c924c9793ee6cd52cce663756bae27314
refs/heads/master: 70e7f145e416dfe0ce8c38e77d8a5280f08eda7f
21 changes: 10 additions & 11 deletions trunk/drivers/staging/cx25821/cx25821-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1208,9 +1208,9 @@ int cx25821_vidioc_qbuf(struct file *file, void *priv, struct v4l2_buffer *p)
int cx25821_vidioc_g_priority(struct file *file, void *f, enum v4l2_priority *p)
{
struct cx25821_dev *dev = ((struct cx25821_fh *)f)->dev;
struct cx25821_fh *fh = f;
struct cx25821_fh *fh = f;

*p = v4l2_prio_max(&dev->channels[fh->channel_id].prio);
*p = v4l2_prio_max(&dev->channels[fh->channel_id].prio);

return 0;
}
Expand All @@ -1221,8 +1221,8 @@ int cx25821_vidioc_s_priority(struct file *file, void *f,
struct cx25821_fh *fh = f;
struct cx25821_dev *dev = ((struct cx25821_fh *)f)->dev;

return v4l2_prio_change(&dev->channels[fh->channel_id]
.prio, &fh->prio, prio);
return v4l2_prio_change(&dev->channels[fh->channel_id].prio, &fh->prio,
prio);
}

#ifdef TUNER_FLAG
Expand All @@ -1235,15 +1235,14 @@ int cx25821_vidioc_s_std(struct file *file, void *priv, v4l2_std_id * tvnorms)
dprintk(1, "%s()\n", __func__);

if (fh) {
err = v4l2_prio_check(&dev->channels[fh->channel_id]
.prio, fh->prio);
err = v4l2_prio_check(&dev->channels[fh->channel_id].prio,
fh->prio);
if (0 != err)
return err;
}

if (dev->tvnorm == *tvnorms) {
if (dev->tvnorm == *tvnorms)
return 0;
}

mutex_lock(&dev->lock);
cx25821_set_tvnorm(dev, *tvnorms);
Expand All @@ -1257,7 +1256,7 @@ int cx25821_vidioc_s_std(struct file *file, void *priv, v4l2_std_id * tvnorms)

int cx25821_enum_input(struct cx25821_dev *dev, struct v4l2_input *i)
{
static const char *iname[] = {
static const char * const iname[] = {
[CX25821_VMUX_COMPOSITE] = "Composite",
[CX25821_VMUX_SVIDEO] = "S-Video",
[CX25821_VMUX_DEBUG] = "for debug only",
Expand Down Expand Up @@ -1305,8 +1304,8 @@ int cx25821_vidioc_s_input(struct file *file, void *priv, unsigned int i)
dprintk(1, "%s(%d)\n", __func__, i);

if (fh) {
err = v4l2_prio_check(&dev->channels[fh->channel_id]
.prio, fh->prio);
err = v4l2_prio_check(&dev->channels[fh->channel_id].prio,
fh->prio);
if (0 != err)
return err;
}
Expand Down

0 comments on commit 2e23fdc

Please sign in to comment.