From: Felipe Balbi Date: Fri, 31 Mar 2017 11:10:40 +0000 (+0300) Subject: usb: dwc3: debugfs: downcase OTG on 'mode' file X-Git-Tag: v4.12-rc1~97^2~25^2~17 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2df301cd3d717af48692542fa634727a213c7732;p=karo-tx-linux.git 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 --- 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));