usb: dwc3: Create helper function getting MDWIDTH
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Sun, 28 Mar 2021 00:54:01 +0000 (17:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 12:07:18 +0000 (14:07 +0200)
commitd00be779cc5016a1f4cc414e25fc45a9df40ffaf
tree38af462b7cd46f56e64be8a87df9a7543e04aa18
parent487adc545bcef07d38b2918a7216a993c06b7dc9
usb: dwc3: Create helper function getting MDWIDTH

Different controller IPs check different HW parameters for MDWIDTH.
To help with maintainability, create a helper function to consolidate
the logic in a single place.

Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/456329d36e8c188df5c234f3282595b630bf1470.1616892233.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debugfs.c
drivers/usb/dwc3/gadget.c