struct platform_device *pdev;
};
-static int ioctl(struct inode *inode,
- struct file *file, unsigned int cmd, unsigned long arg);
+static long ioctl(struct file *file, unsigned int cmd, unsigned long arg);
static int __devinit cpcap_probe(struct spi_device *spi);
static int __devexit cpcap_remove(struct spi_device *spi);
const static struct file_operations cpcap_fops = {
.owner = THIS_MODULE,
- .ioctl = ioctl,
+ .unlocked_ioctl = ioctl,
};
static struct miscdevice cpcap_dev = {
}
-static int test_ioctl(unsigned int cmd, unsigned long arg)
+static long test_ioctl(unsigned int cmd, unsigned long arg)
{
int retval = -EINVAL;
struct cpcap_regacc read_data;
return retval;
}
-static int adc_ioctl(unsigned int cmd, unsigned long arg)
+static long adc_ioctl(unsigned int cmd, unsigned long arg)
{
int retval = -EINVAL;
struct cpcap_adc_phase phase;
return retval;
}
-static int accy_ioctl(unsigned int cmd, unsigned long arg)
+static long accy_ioctl(unsigned int cmd, unsigned long arg)
{
int retval = -EINVAL;
struct cpcap_whisper_request read_data;
return retval;
}
-static int ioctl(struct inode *inode,
- struct file *file, unsigned int cmd, unsigned long arg)
+static long ioctl(struct file *file, unsigned int cmd, unsigned long arg)
{
int retval = -ENOTTY;
unsigned int cmd_num;
static struct cpcap_uc_data *cpcap_uc_info;
static int fops_open(struct inode *inode, struct file *file);
-static int fops_ioctl(struct inode *inode, struct file *file,
- unsigned int cmd, unsigned long arg);
+static long fops_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
static ssize_t fops_write(struct file *file, const char *buf,
size_t count, loff_t *ppos);
static ssize_t fops_read(struct file *file, char *buf,
static const struct file_operations fops = {
.owner = THIS_MODULE,
- .ioctl = fops_ioctl,
+ .unlocked_ioctl = fops_ioctl,
.open = fops_open,
.read = fops_read,
.write = fops_write,
return retval;
}
-static int fops_ioctl(struct inode *inode, struct file *file,
- unsigned int cmd, unsigned long arg)
+static long fops_ioctl(struct file *file, unsigned int cmd,
+ unsigned long arg)
{
int retval = -ENOTTY;
struct cpcap_uc_data *data = file->private_data;