diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2019-06-11 04:12:22 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-06-11 04:12:22 -0700 |
commit | 0434b31d567e119909c97c51cac1b9fc2832f176 (patch) | |
tree | e446780cdaa1cff66994e10daa56124cbf48f132 /drivers/usb/dwc3 | |
parent | 411c38c969a78e65abac8f141f88d9f5dd3aa8f5 (diff) | |
parent | 9600b86489f97d35d22690aec2a227a2ca3c9a8d (diff) |
Merge "dwc3-msm: Fix dwc3_drd_state_string for undefined state"
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/dwc3-msm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-msm.c b/drivers/usb/dwc3/dwc3-msm.c index f5c208c3e4fc..0650f0b69de7 100644 --- a/drivers/usb/dwc3/dwc3-msm.c +++ b/drivers/usb/dwc3/dwc3-msm.c @@ -145,6 +145,7 @@ enum dwc3_drd_state { }; static const char *const state_names[] = { + [DRD_STATE_UNDEFINED] = "undefined", [DRD_STATE_IDLE] = "idle", [DRD_STATE_PERIPHERAL] = "peripheral", [DRD_STATE_PERIPHERAL_SUSPEND] = "peripheral_suspend", @@ -155,7 +156,7 @@ static const char *const state_names[] = { static const char *dwc3_drd_state_string(enum dwc3_drd_state state) { if (state < 0 || state >= ARRAY_SIZE(state_names)) - return "UNDEFINED"; + return "UNKNOWN"; return state_names[state]; } |