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
am: ce1e60b492
Change-Id: I23c1e7dfc017e45dd514f41bd6fe9d15fdf469c9
This commit is contained in:
@@ -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);
|
||||
break;
|
||||
case LIRC_GET_REC_MODE:
|
||||
if (LIRC_CAN_REC(ir->d.features)) {
|
||||
if (!LIRC_CAN_REC(ir->d.features)) {
|
||||
result = -ENOTTY;
|
||||
break;
|
||||
}
|
||||
@@ -599,7 +599,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user