commit | 51c54080ff8fd93d22331a3ef5abe0cee77ce285 | [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 | afb4f55565551133e3dc74ddffeb5486d79fab45 [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>