media: lirc_dev: remove min_timeout and max_timeout

There are no users of this functionality (ir-lirc-codec.c has its own
implementation and lirc_zilog.c doesn't use it) so remove it.

This only affects users of the lirc kapi, not rc-core drivers.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
此提交包含在:
David Härdeman
2017-06-25 08:31:30 -04:00
提交者 Mauro Carvalho Chehab
父節點 c130107721
當前提交 2265425fd9
共有 2 個檔案被更改,包括 0 行新增24 行删除

查看文件

@@ -346,24 +346,6 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
case LIRC_GET_LENGTH:
result = put_user(d->code_length, (__u32 __user *)arg);
break;
case LIRC_GET_MIN_TIMEOUT:
if (!(d->features & LIRC_CAN_SET_REC_TIMEOUT) ||
d->min_timeout == 0) {
result = -ENOTTY;
break;
}
result = put_user(d->min_timeout, (__u32 __user *)arg);
break;
case LIRC_GET_MAX_TIMEOUT:
if (!(d->features & LIRC_CAN_SET_REC_TIMEOUT) ||
d->max_timeout == 0) {
result = -ENOTTY;
break;
}
result = put_user(d->max_timeout, (__u32 __user *)arg);
break;
default:
result = -ENOTTY;
}