]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: dwc3: debugfs: downcase OTG on 'mode' file
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 31 Mar 2017 11:10:40 +0000 (14:10 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 11 Apr 2017 07:58:25 +0000 (10:58 +0300)
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>
drivers/usb/dwc3/debugfs.c

index 7df45415ad70d676878b5ea3c4acdfb6444171dd..2cda6e0dd7fa69de9e80b63802f1f0614dba1293 100644 (file)
@@ -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));