Root/package/system/ep80579-drivers/patches/713-3.3-gpio-fixes.patch

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

Archive Download this file



interactive