diff options
author | Sean Young <sean@mess.org> | 2012-08-13 13:59:49 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-13 21:19:14 +0200 |
commit | d07df223abb42c97dbaf2d26226c3882bcb3a3cf (patch) | |
tree | b8cba6415d37d32da3fcd82184fa4f962d0d3ebd /drivers/media/rc/ir-lirc-codec.c | |
parent | [media] saa7134: simplify timer activation (diff) | |
download | linux-d07df223abb42c97dbaf2d26226c3882bcb3a3cf.tar.xz linux-d07df223abb42c97dbaf2d26226c3882bcb3a3cf.zip |
[media] rc: transmit on device which does not support it should fail
Currently write() will return 0 if an IR device does not support sending.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/ir-lirc-codec.c')
-rw-r--r-- | drivers/media/rc/ir-lirc-codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/ir-lirc-codec.c b/drivers/media/rc/ir-lirc-codec.c index 5faba2a2fdd3..d2fd064474aa 100644 --- a/drivers/media/rc/ir-lirc-codec.c +++ b/drivers/media/rc/ir-lirc-codec.c @@ -105,7 +105,7 @@ static ssize_t ir_lirc_transmit_ir(struct file *file, const char __user *buf, struct lirc_codec *lirc; struct rc_dev *dev; unsigned int *txbuf; /* buffer with values to transmit */ - ssize_t ret = 0; + ssize_t ret = -EINVAL; size_t count; lirc = lirc_get_pdata(file); |