projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c264c6
)
greybus: es1: allow the debug log to be stopped
author
Greg Kroah-Hartman
<greg@kroah.com>
Tue, 24 Mar 2015 19:47:24 +0000
(20:47 +0100)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Tue, 24 Mar 2015 19:47:24 +0000
(20:47 +0100)
If you write 0 to the debugfs file, the log will stop being updated.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/es1.c
b/drivers/staging/greybus/es1.c
index
53d2d47
..
8aad4fb
100644
(file)
--- a/
drivers/staging/greybus/es1.c
+++ b/
drivers/staging/greybus/es1.c
@@
-592,14
+592,12
@@
static ssize_t apb1_log_enable_write(struct file *f, const char __user *buf,
if (retval)
return retval;
- if (enable)
{
+ if (enable)
usb_log_enable(es1);
- retval = count;
- } else {
- retval = -EINVAL;
- }
+ else
+ usb_log_disable(es1);
- return
retval
;
+ return
count
;
}
static const struct file_operations apb1_log_enable_fops = {