mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
greybus: es1: allow the debug log to be stopped
If you write 0 to the debugfs file, the log will stop being updated. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
parent
0c264c6fc2
commit
25d1c37798
1 changed files with 4 additions and 6 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue