projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
uwb
/
uwb-debug.c
diff --git
a/drivers/uwb/uwb-debug.c
b/drivers/uwb/uwb-debug.c
index 2eecec0c13c9bf1bba5013865fdfdd799c175af0..6ec45beb7af5e5bf55756e6d622447dc989dfc48 100644
(file)
--- a/
drivers/uwb/uwb-debug.c
+++ b/
drivers/uwb/uwb-debug.c
@@
-159,13
+159,6
@@
static int cmd_ie_rm(struct uwb_rc *rc, struct uwb_dbg_cmd_ie *ie_to_rm)
return uwb_rc_ie_rm(rc, ie_to_rm->data[0]);
}
return uwb_rc_ie_rm(rc, ie_to_rm->data[0]);
}
-static int command_open(struct inode *inode, struct file *file)
-{
- file->private_data = inode->i_private;
-
- return 0;
-}
-
static ssize_t command_write(struct file *file, const char __user *buf,
size_t len, loff_t *off)
{
static ssize_t command_write(struct file *file, const char __user *buf,
size_t len, loff_t *off)
{
@@
-206,7
+199,7
@@
static ssize_t command_write(struct file *file, const char __user *buf,
}
static const struct file_operations command_fops = {
}
static const struct file_operations command_fops = {
- .open =
command
_open,
+ .open =
simple
_open,
.write = command_write,
.read = NULL,
.llseek = no_llseek,
.write = command_write,
.read = NULL,
.llseek = no_llseek,