Commit 81d50663 authored by Sean Young's avatar Sean Young Committed by Greg Kroah-Hartman

lirc_dev: LIRC_{G,S}ET_REC_MODE do not work

commit bd291208 upstream.

Since "273b902a [media] lirc_dev: use LIRC_CAN_REC() define" these
ioctls no longer work.
Signed-off-by: default avatarSean Young <sean@mess.org>
Reviewed-by: default avatarAndi Shyti <andi.shyti@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1a0fc4b1
......@@ -582,7 +582,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
result = put_user(ir->d.features, (__u32 __user *)arg);
break;
case LIRC_GET_REC_MODE:
if (LIRC_CAN_REC(ir->d.features)) {
if (!LIRC_CAN_REC(ir->d.features)) {
result = -ENOTTY;
break;
}
......@@ -592,7 +592,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
(__u32 __user *)arg);
break;
case LIRC_SET_REC_MODE:
if (LIRC_CAN_REC(ir->d.features)) {
if (!LIRC_CAN_REC(ir->d.features)) {
result = -ENOTTY;
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment