Staging: use llseek in all file operations
These could not be detected by the semantic patch.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
index 6fa57be..8bd7182 100644
--- a/drivers/staging/panel/panel.c
+++ b/drivers/staging/panel/panel.c
@@ -1356,7 +1356,7 @@
lcd_must_clear = 0;
}
lcd_open_cnt++;
- return 0;
+ return nonseekable_open(inode, file);
}
static int lcd_release(struct inode *inode, struct file *file)
@@ -1369,6 +1369,7 @@
.write = lcd_write,
.open = lcd_open,
.release = lcd_release,
+ .llseek = no_llseek,
};
static struct miscdevice lcd_dev = {