diff options
author | Felipe Balbi <balbi@ti.com> | 2014-04-30 11:33:04 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-05-12 12:34:23 -0500 |
commit | b3025e6ada454848b6ae2d3bcd925738384517df (patch) | |
tree | 6e00921d496ef7b0532ab2d2de2f027c3c16cd49 /drivers/usb/phy | |
parent | e695abb3c8b1b758843a1db2a73c98b3d14c173a (diff) |
usb: phy: msm: cast to enum msm_usb_phy_type
this solves the following build warning found when
running compile tests.
drivers/usb/phy/phy-msm-usb.c: In function ‘msm_otg_read_dt’:
drivers/usb/phy/phy-msm-usb.c:1459:20: warning: cast from pointer \
to integer of different size [-Wpointer-to-int-cast]
pdata->phy_type = (int) id->data;
^
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r-- | drivers/usb/phy/phy-msm-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c index 9dc79180b93..591b406fd7f 100644 --- a/drivers/usb/phy/phy-msm-usb.c +++ b/drivers/usb/phy/phy-msm-usb.c @@ -1456,7 +1456,7 @@ static int msm_otg_read_dt(struct platform_device *pdev, struct msm_otg *motg) motg->pdata = pdata; id = of_match_device(msm_otg_dt_match, &pdev->dev); - pdata->phy_type = (int) id->data; + pdata->phy_type = (enum msm_usb_phy_type) id->data; motg->link_rst = devm_reset_control_get(&pdev->dev, "link"); if (IS_ERR(motg->link_rst)) |