Re: [PATCH] spi: spidev: Add 32 bit compat ioctl()

From: Bernhard Walle
Date: Thu Feb 03 2011 - 03:38:14 EST


Am 02.02.2011 15:15, schrieb Grant Likely:
>> static int spidev_open(struct inode *inode, struct file *filp)
>> {
>> struct spidev_data *spidev;
>> @@ -543,6 +552,9 @@ static const struct file_operations spidev_fops = {
>> .write = spidev_write,
>> .read = spidev_read,
>> .unlocked_ioctl = spidev_ioctl,
>> +#ifdef CONFIG_COMPAT
>> + .compat_ioctl = spidev_compat_ioctl,
>> +#endif
>
> Then the #ifdef/#endif can be dropped here which is tidier.

Ok, thanks, I resent the patch with that modification.


Regards,
Bernhard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/