Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Sean Young and committed by
Mauro Carvalho Chehab
d07df223 4da212e2

+1 -1
+1 -1
drivers/media/rc/ir-lirc-codec.c
··· 105 105 struct lirc_codec *lirc; 106 106 struct rc_dev *dev; 107 107 unsigned int *txbuf; /* buffer with values to transmit */ 108 - ssize_t ret = 0; 108 + ssize_t ret = -EINVAL; 109 109 size_t count; 110 110 111 111 lirc = lirc_get_pdata(file);