1 --- a/crystalhd_lnx.c 2010-09-26 18:55:46.000000000 +0200
2 +++ b/crystalhd_lnx.c 2010-10-06 02:23:47.000000000 +0200
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
8 static int chd_dec_ioctl(struct inode *in, struct file *fd,
9 unsigned int cmd, unsigned long ua)
11 +static long chd_dec_ioctl(struct file *fd,
12 + unsigned int cmd, unsigned long ua)
15 struct crystalhd_adp *adp = chd_get_adp();
16 crystalhd_cmd_proc cproc;
19 static const struct file_operations chd_dec_fops = {
21 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
22 .ioctl = chd_dec_ioctl,
24 + .unlocked_ioctl = chd_dec_ioctl,
27 .release = chd_dec_close,