projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
379e205
)
media: rc-loopback: return number of emitters rather than error
author
Sean Young
<sean@mess.org>
Sat, 3 Jul 2021 13:37:17 +0000
(15:37 +0200)
committer
Mauro Carvalho Chehab
<mchehab+huawei@kernel.org>
Thu, 22 Jul 2021 06:19:17 +0000
(08:19 +0200)
The LIRC_SET_TRANSMITTER_MASK ioctl should return the number of emitters
if an invalid list was set.
Cc: stable@vger.kernel.org
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/rc-loopback.c
patch
|
blob
|
history
diff --git
a/drivers/media/rc/rc-loopback.c
b/drivers/media/rc/rc-loopback.c
index 1ba3f96ffa7dcbb118d5654ce82ed73f762a9655..40ab66c850f230f7e2f257a24f54e0effa057901 100644
(file)
--- a/
drivers/media/rc/rc-loopback.c
+++ b/
drivers/media/rc/rc-loopback.c
@@
-42,7
+42,7
@@
static int loop_set_tx_mask(struct rc_dev *dev, u32 mask)
if ((mask & (RXMASK_REGULAR | RXMASK_LEARNING)) != mask) {
dprintk("invalid tx mask: %u\n", mask);
- return
-EINVAL
;
+ return
2
;
}
dprintk("setting tx mask: %u\n", mask);