Skip to content

Commit

Permalink
eisa_eeprom: switch to fixed_size_llseek()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jun 29, 2013
1 parent c0caa07 commit 7479779
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions drivers/parisc/eisa_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,9 @@

#define EISA_EEPROM_MINOR 241

static loff_t eisa_eeprom_llseek(struct file *file, loff_t offset, int origin )
static loff_t eisa_eeprom_llseek(struct file *file, loff_t offset, int origin)
{
switch (origin) {
case 0:
/* nothing to do */
break;
case 1:
offset += file->f_pos;
break;
case 2:
offset += HPEE_MAX_LENGTH;
break;
}
return (offset >= 0 && offset < HPEE_MAX_LENGTH) ? (file->f_pos = offset) : -EINVAL;
return fixed_size_llseek(file, offset, origin, HPEE_MAX_LENGTH);
}

static ssize_t eisa_eeprom_read(struct file * file,
Expand Down

0 comments on commit 7479779

Please sign in to comment.