commit | a47bf33ff03c6e847db78e6a4e6f3d8643fb3855 | [log] [tgz] |
---|---|---|
author | John Keeping <john@metanate.com> | Wed Apr 12 12:52:52 2023 +0100 |
committer | Kever Yang <kever.yang@rock-chips.com> | Tue May 09 22:50:01 2023 +0800 |
tree | 069ba406eea7160c7849de3854a53cf8974fe17c | |
parent | 94ba2a478d32b43778a6126c72a69ce133efc644 [diff] |
rockchip: use standard dr_mode parsing function Instead of duplicating the string values here, use usb_get_dr_mode() to handle the property lookup and converting the values to an enum. This is implemented with a switch in preparation for the next patch which adds extra handling for peripheral mode. Signed-off-by: John Keeping <john@metanate.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>