|
@@ -524,7 +524,7 @@ EXPORT_SYMBOL(lirc_dev_fop_poll);
|
|
|
|
|
|
long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|
|
{
|
|
|
- unsigned long mode;
|
|
|
+ __u32 mode;
|
|
|
int result = 0;
|
|
|
struct irctl *ir = file->private_data;
|
|
|
|
|
@@ -541,7 +541,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|
|
|
|
|
switch (cmd) {
|
|
|
case LIRC_GET_FEATURES:
|
|
|
- result = put_user(ir->d.features, (unsigned long *)arg);
|
|
|
+ result = put_user(ir->d.features, (__u32 *)arg);
|
|
|
break;
|
|
|
case LIRC_GET_REC_MODE:
|
|
|
if (!(ir->d.features & LIRC_CAN_REC_MASK)) {
|
|
@@ -551,7 +551,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|
|
|
|
|
result = put_user(LIRC_REC2MODE
|
|
|
(ir->d.features & LIRC_CAN_REC_MASK),
|
|
|
- (unsigned long *)arg);
|
|
|
+ (__u32 *)arg);
|
|
|
break;
|
|
|
case LIRC_SET_REC_MODE:
|
|
|
if (!(ir->d.features & LIRC_CAN_REC_MASK)) {
|
|
@@ -559,7 +559,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- result = get_user(mode, (unsigned long *)arg);
|
|
|
+ result = get_user(mode, (__u32 *)arg);
|
|
|
if (!result && !(LIRC_MODE2REC(mode) & ir->d.features))
|
|
|
result = -EINVAL;
|
|
|
/*
|
|
@@ -568,7 +568,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|
|
*/
|
|
|
break;
|
|
|
case LIRC_GET_LENGTH:
|
|
|
- result = put_user(ir->d.code_length, (unsigned long *)arg);
|
|
|
+ result = put_user(ir->d.code_length, (__u32 *)arg);
|
|
|
break;
|
|
|
case LIRC_GET_MIN_TIMEOUT:
|
|
|
if (!(ir->d.features & LIRC_CAN_SET_REC_TIMEOUT) ||
|
|
@@ -577,7 +577,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- result = put_user(ir->d.min_timeout, (unsigned long *)arg);
|
|
|
+ result = put_user(ir->d.min_timeout, (__u32 *)arg);
|
|
|
break;
|
|
|
case LIRC_GET_MAX_TIMEOUT:
|
|
|
if (!(ir->d.features & LIRC_CAN_SET_REC_TIMEOUT) ||
|
|
@@ -586,7 +586,7 @@ long lirc_dev_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- result = put_user(ir->d.max_timeout, (unsigned long *)arg);
|
|
|
+ result = put_user(ir->d.max_timeout, (__u32 *)arg);
|
|
|
break;
|
|
|
default:
|
|
|
result = -EINVAL;
|