summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lirc/lirc_serial.c
diff options
context:
space:
mode:
authorArnd Bergmann2010-08-15 18:51:56 +0200
committerArnd Bergmann2010-09-16 10:33:16 +0200
commitd9d2e9d5c9eead1f73f92f5fc03424dab90b6c95 (patch)
tree9e315c7eabb32658d7b03ec3454fb075bfba9c4c /drivers/staging/lirc/lirc_serial.c
parentviotape: use noop_llseek (diff)
downloadkernel-qcow2-linux-d9d2e9d5c9eead1f73f92f5fc03424dab90b6c95.tar.gz
kernel-qcow2-linux-d9d2e9d5c9eead1f73f92f5fc03424dab90b6c95.tar.xz
kernel-qcow2-linux-d9d2e9d5c9eead1f73f92f5fc03424dab90b6c95.zip
lirc: make chardev nonseekable
There does not seem to be a need for lirc to allow seeking on the file descriptor, so let's just disallow this before users start relying on it. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/staging/lirc/lirc_serial.c')
-rw-r--r--drivers/staging/lirc/lirc_serial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/lirc/lirc_serial.c b/drivers/staging/lirc/lirc_serial.c
index 9456f8e3f9ef..8da382492612 100644
--- a/drivers/staging/lirc/lirc_serial.c
+++ b/drivers/staging/lirc/lirc_serial.c
@@ -1058,6 +1058,7 @@ static const struct file_operations lirc_fops = {
.poll = lirc_dev_fop_poll,
.open = lirc_dev_fop_open,
.release = lirc_dev_fop_close,
+ .llseek = no_llseek,
};
static struct lirc_driver driver = {