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;
}
* @chunk_size: Size of each FIFO buffer.
* Only used if @rbuf is NULL.
* @data: private per-driver data
- * @min_timeout: Minimum timeout for record. Valid only if
- * LIRC_CAN_SET_REC_TIMEOUT is defined.
- * @max_timeout: Maximum timeout for record. Valid only if
- * LIRC_CAN_SET_REC_TIMEOUT is defined.
* @buf: if %NULL, lirc_dev will allocate and manage the buffer,
* otherwise allocated by the caller which will
* have to write to the buffer by other means, like irq's
bool buf_internal;
void *data;
- int min_timeout;
- int max_timeout;
struct rc_dev *rdev;
const struct file_operations *fops;
struct module *owner;