diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/uwb/uwb-debug.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/uwb/uwb-debug.c')
-rw-r--r-- | drivers/uwb/uwb-debug.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/uwb/uwb-debug.c b/drivers/uwb/uwb-debug.c index 6ec45beb7af..2eecec0c13c 100644 --- a/drivers/uwb/uwb-debug.c +++ b/drivers/uwb/uwb-debug.c | |||
@@ -159,6 +159,13 @@ static int cmd_ie_rm(struct uwb_rc *rc, struct uwb_dbg_cmd_ie *ie_to_rm) | |||
159 | return uwb_rc_ie_rm(rc, ie_to_rm->data[0]); | 159 | return uwb_rc_ie_rm(rc, ie_to_rm->data[0]); |
160 | } | 160 | } |
161 | 161 | ||
162 | static int command_open(struct inode *inode, struct file *file) | ||
163 | { | ||
164 | file->private_data = inode->i_private; | ||
165 | |||
166 | return 0; | ||
167 | } | ||
168 | |||
162 | static ssize_t command_write(struct file *file, const char __user *buf, | 169 | static ssize_t command_write(struct file *file, const char __user *buf, |
163 | size_t len, loff_t *off) | 170 | size_t len, loff_t *off) |
164 | { | 171 | { |
@@ -199,7 +206,7 @@ static ssize_t command_write(struct file *file, const char __user *buf, | |||
199 | } | 206 | } |
200 | 207 | ||
201 | static const struct file_operations command_fops = { | 208 | static const struct file_operations command_fops = { |
202 | .open = simple_open, | 209 | .open = command_open, |
203 | .write = command_write, | 210 | .write = command_write, |
204 | .read = NULL, | 211 | .read = NULL, |
205 | .llseek = no_llseek, | 212 | .llseek = no_llseek, |