if (*off)
return 0;
+ if (off != &file->f_pos)
+ return -ESPIPE;
divas_get_version(tmpbuf);
if (copy_to_user(buf + len, &tmpbuf, strlen(tmpbuf)))
static int divas_open(struct inode *inode, struct file *file)
{
- return nonseekable_open(inode, file);
+ return (0);
}
static int divas_close(struct inode *inode, struct file *file)