summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2017-03-31 14:10:40 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-04-11 10:58:25 +0300
commit2df301cd3d717af48692542fa634727a213c7732 (patch)
treedfc878bd1ec844d905eb77b8970074c8743b9c75
parent97b3ffa233b94741ae77d6ece2476331935bf15b (diff)
downloadlinux-stable-2df301cd3d717af48692542fa634727a213c7732.tar.gz
linux-stable-2df301cd3d717af48692542fa634727a213c7732.tar.bz2
linux-stable-2df301cd3d717af48692542fa634727a213c7732.zip
usb: dwc3: debugfs: downcase OTG on 'mode' file
When writing, we expect the "otg" string. When showing, we return "OTG". Let's downcase that word to avoid confusion. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r--drivers/usb/dwc3/debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/debugfs.c b/drivers/usb/dwc3/debugfs.c
index 7df45415ad70..2cda6e0dd7fa 100644
--- a/drivers/usb/dwc3/debugfs.c
+++ b/drivers/usb/dwc3/debugfs.c
@@ -300,7 +300,7 @@ static int dwc3_mode_show(struct seq_file *s, void *unused)
seq_printf(s, "device\n");
break;
case DWC3_GCTL_PRTCAP_OTG:
- seq_printf(s, "OTG\n");
+ seq_printf(s, "otg\n");
break;
default:
seq_printf(s, "UNKNOWN %08x\n", DWC3_GCTL_PRTCAP(reg));