Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181485
b: refs/heads/master
c: e057232
h: refs/heads/master
i:
  181483: b1540bd
v: v3
  • Loading branch information
Alexey Dobriyan authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 970bde5 commit 7cd4cea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: 9c6f97a02358c78ed1db69cde702db263bc62cf6
refs/heads/master: e0572325d23b8c89930a08e0b8b3850a6fe75d7d
14 changes: 8 additions & 6 deletions trunk/drivers/media/dvb/ttpci/av7110_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ int av7110_check_ir_config(struct av7110 *av7110, int force)


/* /proc/av7110_ir interface */
static int av7110_ir_write_proc(struct file *file, const char __user *buffer,
unsigned long count, void *data)
static ssize_t av7110_ir_proc_write(struct file *file, const char __user *buffer,
size_t count, loff_t *pos)
{
char *page;
u32 ir_config;
Expand Down Expand Up @@ -309,6 +309,10 @@ static int av7110_ir_write_proc(struct file *file, const char __user *buffer,
return count;
}

static const struct file_operations av7110_ir_proc_fops = {
.owner = THIS_MODULE,
.write = av7110_ir_proc_write,
};

/* interrupt handler */
static void ir_handler(struct av7110 *av7110, u32 ircom)
Expand Down Expand Up @@ -368,11 +372,9 @@ int __devinit av7110_ir_init(struct av7110 *av7110)
input_dev->timer.data = (unsigned long) &av7110->ir;

if (av_cnt == 1) {
e = create_proc_entry("av7110_ir", S_IFREG | S_IRUGO | S_IWUSR, NULL);
if (e) {
e->write_proc = av7110_ir_write_proc;
e = proc_create("av7110_ir", S_IWUSR, NULL, &av7110_ir_proc_fops);
if (e)
e->size = 4 + 256 * sizeof(u16);
}
}

tasklet_init(&av7110->ir.ir_tasklet, av7110_emit_key, (unsigned long) &av7110->ir);
Expand Down

0 comments on commit 7cd4cea

Please sign in to comment.