Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242157
b: refs/heads/master
c: 9a55a2b
h: refs/heads/master
i:
  242155: aa5ebb0
v: v3
  • Loading branch information
Andy Walls authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent 125a9e2 commit fb4e811
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: a30648550f2f758c9c00c493c8919f89f65438c4
refs/heads/master: 9a55a2b37eb7e4941ef55aadb858b615d229afee
9 changes: 2 additions & 7 deletions trunk/drivers/staging/lirc/lirc_zilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,12 +712,6 @@ static int tx_init(struct IR_tx *tx)
return 0;
}

/* do nothing stub to make LIRC happy */
static loff_t lseek(struct file *filep, loff_t offset, int orig)
{
return -ESPIPE;
}

/* copied from lirc_dev */
static ssize_t read(struct file *filep, char *outbuf, size_t n, loff_t *ppos)
{
Expand Down Expand Up @@ -1099,6 +1093,7 @@ static int open(struct inode *node, struct file *filep)
/* stash our IR struct */
filep->private_data = ir;

nonseekable_open(node, filep);
return 0;
}

Expand Down Expand Up @@ -1150,7 +1145,7 @@ static struct i2c_driver driver = {

static const struct file_operations lirc_fops = {
.owner = THIS_MODULE,
.llseek = lseek,
.llseek = no_llseek,
.read = read,
.write = write,
.poll = poll,
Expand Down

0 comments on commit fb4e811

Please sign in to comment.