mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
lirc_dev: LIRC_{G,S}ET_REC_MODE do not work
commit bd291208d7 upstream.
Since "273b902 [media] lirc_dev: use LIRC_CAN_REC() define" these
ioctls no longer work.
Signed-off-by: Sean Young <sean@mess.org>
Reviewed-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
238442c2b5
commit
ce1e60b492
@@ -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)
|
|||||||
(__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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user