Messages in this thread | | | Date | Thu, 03 Feb 2011 09:38:06 +0100 | From | Bernhard Walle <> | Subject | Re: [PATCH] spi: spidev: Add 32 bit compat ioctl() |
| |
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
| |