Commit bd291208 authored by Sean Young's avatar Sean Young Committed by Mauro Carvalho Chehab

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

Since "273b902a [media] lirc_dev: use LIRC_CAN_REC() define" these
ioctls no longer work.
Signed-off-by: default avatarSean Young <sean@mess.org>
Cc: <stable@vger.kernel.org> # v4.8+
Reviewed-by: default avatarAndi Shyti <andi.shyti@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 3cf8d8e4
......@@ -578,7 +578,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;
}
......@@ -588,7 +588,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