projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generic: ar8216: add caps field to ar8xxx_chip
[openwrt.git]
/
target
/
linux
/
generic
/
files
/
drivers
/
char
/
gpio_dev.c
diff --git
a/target/linux/generic/files/drivers/char/gpio_dev.c
b/target/linux/generic/files/drivers/char/gpio_dev.c
index
e6d5b1d
..
0f428bd
100644
(file)
--- a/
target/linux/generic/files/drivers/char/gpio_dev.c
+++ b/
target/linux/generic/files/drivers/char/gpio_dev.c
@@
-32,6
+32,7
@@
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/gpio_dev.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/gpio_dev.h>
+#include <linux/fs.h>
#define DRVNAME "gpiodev"
#define DEVNAME "gpio"
#define DRVNAME "gpiodev"
#define DEVNAME "gpio"
@@
-42,8
+43,7
@@
static struct class *gpiodev_class;
/* third argument of user space ioctl ('arg' here) contains the <pin> */
static int
/* 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;
{
int retval = 0;
@@
-114,7
+114,7
@@
gpio_close(struct inode * inode, struct file * file)
}
struct file_operations gpio_fops = {
}
struct file_operations gpio_fops = {
-
ioctl:
gpio_ioctl,
+
unlocked_ioctl:
gpio_ioctl,
open: gpio_open,
release: gpio_close
};
open: gpio_open,
release: gpio_close
};
This page took
0.021623 seconds
and
4
git commands to generate.