Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 192871
b: refs/heads/master
c: 4674226
h: refs/heads/master
i:
  192869: f6e6235
  192867: 9faf37a
  192863: e4d1429
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent 90d8648 commit cf84bd8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 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: b3e212dcbddb10b44d472a5f4c23d5aa0b5876ca
refs/heads/master: 467422678e9e73bff8d175024cdd89ed48483697
18 changes: 0 additions & 18 deletions trunk/drivers/media/video/pms.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ struct pms {
int depth;
int input;
s32 brightness, saturation, hue, contrast;
unsigned long in_use;
struct mutex lock;
int i2c_count;
struct i2c_info i2cinfo[64];
Expand Down Expand Up @@ -931,25 +930,8 @@ static ssize_t pms_read(struct file *file, char __user *buf,
return len;
}

static int pms_exclusive_open(struct file *file)
{
struct pms *dev = video_drvdata(file);

return test_and_set_bit(0, &dev->in_use) ? -EBUSY : 0;
}

static int pms_exclusive_release(struct file *file)
{
struct pms *dev = video_drvdata(file);

clear_bit(0, &dev->in_use);
return 0;
}

static const struct v4l2_file_operations pms_fops = {
.owner = THIS_MODULE,
.open = pms_exclusive_open,
.release = pms_exclusive_release,
.ioctl = video_ioctl2,
.read = pms_read,
};
Expand Down

0 comments on commit cf84bd8

Please sign in to comment.