On 01/10/2017 05:24 AM, John Youn wrote:

Update the param types to appropriately sized ints and bools.

Signed-off-by: John Youn <[email protected]>
---
 drivers/usb/dwc2/core.h | 52 ++++++++++++++++++++++++-------------------------
 1 file changed, 26 insertions(+), 26 deletions(-)

diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h
index 7256b9f7097a..c6f62648ad97 100644
--- a/drivers/usb/dwc2/core.h
+++ b/drivers/usb/dwc2/core.h
@@ -452,50 +452,50 @@ enum dwc2_ep0_state {
[...]
-       int phy_utmi_width;
-       int phy_ulpi_ddr;
-       int phy_ulpi_ext_vbus;
+       u8 phy_utmi_width;
+       bool phy_ulpi_ddr;
+       bool phy_ulpi_ext_vbus;

   If it's *bool* now, shouyldn't tghe following be dropped?

 #define DWC2_PHY_ULPI_INTERNAL_VBUS    0
 #define DWC2_PHY_ULPI_EXTERNAL_VBUS    1

-       int i2c_enable;
-       int ulpi_fs_ls;
-       int host_support_fs_ls_low_power;
-       int host_ls_low_power_phy_clk;
+       bool i2c_enable;
+       bool ulpi_fs_ls;
+       bool host_support_fs_ls_low_power;
+       bool host_ls_low_power_phy_clk;
 #define DWC2_HOST_LS_LOW_POWER_PHY_CLK_PARAM_48MHZ     0
 #define DWC2_HOST_LS_LOW_POWER_PHY_CLK_PARAM_6MHZ      1

   Same question.

[...]

MBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to