713-3.3-gpio-fixes.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. // private driver functions
  11. int gpio_getpininfo(int Signal, char *pBuff);
  12. @@ -134,7 +133,7 @@ struct file_operations file_ops =
  13. .owner = THIS_MODULE,
  14. .open = gpio_open,
  15. .release = gpio_release,
  16. - .ioctl = gpio_ioctl,
  17. + .unlocked_ioctl = gpio_ioctl,
  18. };
  19. #endif
  20. --- a/Embedded/src/GPIO/gpio_ref.c
  21. +++ b/Embedded/src/GPIO/gpio_ref.c
  22. @@ -251,8 +251,7 @@ int gpio_release(struct inode *inode, st
  23. 0 => success
  24. < 0 => error
  25. ******************************************************************************/
  26. -int gpio_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
  27. - unsigned long arg)
  28. +long gpio_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
  29. {
  30. gpio_ioctl_t Info;
  31. u_int bitstr = 0;