diff options
author | John Youn <John.Youn@synopsys.com> | 2017-01-23 14:55:14 -0800 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-01-24 16:19:05 +0200 |
commit | 245977c967eee19de4d5e95ec67227dcfe57b0e2 (patch) | |
tree | 37884b9d47093df1e7919a42a44a176b2393c4b4 /drivers/usb/dwc2/core.h | |
parent | 0f3a7459ae2fd47cce099735ea3260979729cbfd (diff) | |
download | linux-245977c967eee19de4d5e95ec67227dcfe57b0e2.tar.bz2 |
usb: dwc2: Set core parameters to default values
Initialize the core parameters to their default, auto-detected values.
Remove all the previous dwc2_set_param* methods. Most of what this code
is doing is handling defaults for "not set" values and other trivial
checks. The checking can be simplified and will be done in a later
commit.
This allows us to change only those parameters that won't work with
default settings. It also allows us to use non-int parameters.
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/core.h')
-rw-r--r-- | drivers/usb/dwc2/core.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h index 73514f263e40..7256b9f7097a 100644 --- a/drivers/usb/dwc2/core.h +++ b/drivers/usb/dwc2/core.h @@ -452,10 +452,6 @@ enum dwc2_ep0_state { * default described above. */ struct dwc2_core_params { - /* - * Don't add any non-int members here, this will break - * dwc2_set_all_params! - */ int otg_cap; #define DWC2_CAP_PARAM_HNP_SRP_CAPABLE 0 #define DWC2_CAP_PARAM_SRP_ONLY_CAPABLE 1 |