Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181415
b: refs/heads/master
c: eecee32
h: refs/heads/master
i:
  181413: 0dea8dd
  181411: a338c65
  181407: d57d8eb
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Feb 26, 2010
1 parent a960b04 commit 1ac2e1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d4b778d36889b4d51d79a99f8a96e110def8541c
refs/heads/master: eecee32ac2c4b00b76cc8d99fd8d2b9fd54a283d
3 changes: 3 additions & 0 deletions trunk/drivers/media/IR/ir-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ static ssize_t store_protocol(struct device *d,
struct ir_input_dev *ir_dev = dev_get_drvdata(d);
enum ir_type ir_type = IR_TYPE_UNKNOWN;
int rc = -EINVAL;
unsigned long flags;
char *buf;

buf = strsep((char **) &data, "\n");
Expand All @@ -104,7 +105,9 @@ static ssize_t store_protocol(struct device *d,
return -EINVAL;
}

spin_lock_irqsave(&ir_dev->rc_tab.lock, flags);
ir_dev->rc_tab.ir_type = ir_type;
spin_unlock_irqrestore(&ir_dev->rc_tab.lock, flags);

IR_dprintk(1, "Current protocol is %ld\n", ir_type);

Expand Down

0 comments on commit 1ac2e1a

Please sign in to comment.