#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/gpio_dev.h>
+#include <linux/fs.h>
#define DRVNAME "gpiodev"
#define DEVNAME "gpio"
/* third argument of user space ioctl ('arg' here) contains the <pin> */
static int
-gpio_ioctl(struct inode * inode, struct file * file, unsigned int cmd,
- unsigned long arg)
+gpio_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
{
int retval = 0;
}
struct file_operations gpio_fops = {
- ioctl: gpio_ioctl,
+ unlocked_ioctl: gpio_ioctl,
open: gpio_open,
release: gpio_close
};
+++ /dev/null
---- a/drivers/char/gpio_dev.c
-+++ b/drivers/char/gpio_dev.c
-@@ -114,7 +114,7 @@ gpio_close(struct inode * inode, struct
- }
-
- struct file_operations gpio_fops = {
-- ioctl: gpio_ioctl,
-+ unlocked_ioctl: gpio_ioctl,
- open: gpio_open,
- release: gpio_close
- };
+++ /dev/null
---- a/drivers/char/gpio_dev.c
-+++ b/drivers/char/gpio_dev.c
-@@ -114,7 +114,7 @@ gpio_close(struct inode * inode, struct
- }
-
- struct file_operations gpio_fops = {
-- ioctl: gpio_ioctl,
-+ unlocked_ioctl: gpio_ioctl,
- open: gpio_open,
- release: gpio_close
- };
+++ /dev/null
---- a/drivers/char/gpio_dev.c
-+++ b/drivers/char/gpio_dev.c
-@@ -114,7 +114,7 @@ gpio_close(struct inode * inode, struct
- }
-
- struct file_operations gpio_fops = {
-- ioctl: gpio_ioctl,
-+ unlocked_ioctl: gpio_ioctl,
- open: gpio_open,
- release: gpio_close
- };
+++ /dev/null
---- a/drivers/char/gpio_dev.c
-+++ b/drivers/char/gpio_dev.c
-@@ -114,7 +114,7 @@ gpio_close(struct inode * inode, struct
- }
-
- struct file_operations gpio_fops = {
-- ioctl: gpio_ioctl,
-+ unlocked_ioctl: gpio_ioctl,
- open: gpio_open,
- release: gpio_close
- };
+++ /dev/null
---- a/drivers/char/gpio_dev.c
-+++ b/drivers/char/gpio_dev.c
-@@ -114,7 +114,7 @@ gpio_close(struct inode * inode, struct
- }
-
- struct file_operations gpio_fops = {
-- ioctl: gpio_ioctl,
-+ unlocked_ioctl: gpio_ioctl,
- open: gpio_open,
- release: gpio_close
- };