Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268451
b: refs/heads/master
c: e0b871b
h: refs/heads/master
i:
  268449: 8df959d
  268447: 9e52654
v: v3
  • Loading branch information
Leonid V. Fedorenchik authored and Greg Kroah-Hartman committed Sep 16, 2011
1 parent 2e23fdc commit 13a4714
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 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: 70e7f145e416dfe0ce8c38e77d8a5280f08eda7f
refs/heads/master: e0b871bd2c8f6760c75cc72d960533b1928f16ab
26 changes: 13 additions & 13 deletions trunk/drivers/staging/cx25821/cx25821-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1358,14 +1358,14 @@ int cx25821_vidioc_s_frequency(struct file *file, void *priv,
int err;

if (fh) {
dev = fh->dev;
err = v4l2_prio_check(&dev->channels[fh->channel_id]
.prio, fh->prio);
dev = fh->dev;
err = v4l2_prio_check(&dev->channels[fh->channel_id].prio,
fh->prio);
if (0 != err)
return err;
} else {
pr_err("Invalid fh pointer!\n");
return -EINVAL;
} else {
pr_err("Invalid fh pointer!\n");
return -EINVAL;
}

return cx25821_set_freq(dev, f);
Expand Down Expand Up @@ -1427,8 +1427,8 @@ int cx25821_vidioc_s_tuner(struct file *file, void *priv, struct v4l2_tuner *t)
int err;

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 Expand Up @@ -1527,7 +1527,7 @@ int cx25821_vidioc_g_ctrl(struct file *file, void *priv,
struct v4l2_control *ctl)
{
struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
struct cx25821_fh *fh = priv;
struct cx25821_fh *fh = priv;

const struct v4l2_queryctrl *ctrl;

Expand All @@ -1537,16 +1537,16 @@ int cx25821_vidioc_g_ctrl(struct file *file, void *priv,
return -EINVAL;
switch (ctl->id) {
case V4L2_CID_BRIGHTNESS:
ctl->value = dev->channels[fh->channel_id].ctl_bright;
ctl->value = dev->channels[fh->channel_id].ctl_bright;
break;
case V4L2_CID_HUE:
ctl->value = dev->channels[fh->channel_id].ctl_hue;
ctl->value = dev->channels[fh->channel_id].ctl_hue;
break;
case V4L2_CID_CONTRAST:
ctl->value = dev->channels[fh->channel_id].ctl_contrast;
ctl->value = dev->channels[fh->channel_id].ctl_contrast;
break;
case V4L2_CID_SATURATION:
ctl->value = dev->channels[fh->channel_id].ctl_saturation;
ctl->value = dev->channels[fh->channel_id].ctl_saturation;
break;
}
return 0;
Expand Down

0 comments on commit 13a4714

Please sign in to comment.