Commit ce1e60b4 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 238442c2
...@@ -589,7 +589,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -589,7 +589,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
result = put_user(ir->d.features, (__u32 __user *)arg); result = put_user(ir->d.features, (__u32 __user *)arg);
break; break;
case LIRC_GET_REC_MODE: case LIRC_GET_REC_MODE:
if (LIRC_CAN_REC(ir->d.features)) { if (!LIRC_CAN_REC(ir->d.features)) {
result = -ENOTTY; result = -ENOTTY;
break; break;
} }
...@@ -599,7 +599,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -599,7 +599,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
(__u32 __user *)arg); (__u32 __user *)arg);
break; break;
case LIRC_SET_REC_MODE: case LIRC_SET_REC_MODE:
if (LIRC_CAN_REC(ir->d.features)) { if (!LIRC_CAN_REC(ir->d.features)) {
result = -ENOTTY; result = -ENOTTY;
break; 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