aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/ep80579-drivers/patches/713-3.3-gpio-fixes.patch
blob: 47fb920d0ac7b46f522f9f06208d23dff93c5ebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/Embedded/src/GPIO/gpio.h
+++ b/Embedded/src/GPIO/gpio.h
@@ -121,8 +121,7 @@ int gpio_init(void);
 void gpio_close(void);
 int gpio_open(struct inode *inode, struct file *filp);
 int gpio_release(struct inode *inode, struct file *filp);
-int gpio_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, 
-			   unsigned long arg);
+long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
 
 // private driver functions
 int gpio_getpininfo(int Signal, char *pBuff);
@@ -134,7 +133,7 @@ struct file_operations file_ops =
 	.owner	=	THIS_MODULE,
 	.open   =    gpio_open,
 	.release =   gpio_release,	
-	.ioctl	=	gpio_ioctl,
+	.unlocked_ioctl	= gpio_ioctl,
 };
 
 #endif
--- a/Embedded/src/GPIO/gpio_ref.c
+++ b/Embedded/src/GPIO/gpio_ref.c
@@ -251,8 +251,7 @@ int gpio_release(struct inode *inode, st
       0 => success
     < 0 => error
 ******************************************************************************/
-int gpio_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
-                unsigned long arg)
+long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 {
     gpio_ioctl_t Info;
     u_int bitstr = 0;