linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] usb: phy: msm: cast to unsigned long int
@ 2014-04-30 16:38 Felipe Balbi
       [not found] ` <1398875916-14461-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org>
  2014-04-30 16:38 ` [PATCH 3/3] usb: phy: msm: enable build on other architectures Felipe Balbi
  0 siblings, 2 replies; 8+ messages in thread
From: Felipe Balbi @ 2014-04-30 16:38 UTC (permalink / raw)
  To: iivanov; +Cc: tim.bird, linux-arm-msm, Linux USB Mailing List, Felipe Balbi

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>
---

all patches are on top of Ivan's 20 patch series.

 drivers/usb/phy/phy-msm-usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c
index 9dc7918..c9963c8 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 = (unsigned long int) id->data;
 
 	motg->link_rst = devm_reset_control_get(&pdev->dev, "link");
 	if (IS_ERR(motg->link_rst))
-- 
2.0.0.rc1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-05 15:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-30 16:38 [PATCH 1/3] usb: phy: msm: cast to unsigned long int Felipe Balbi
     [not found] ` <1398875916-14461-1-git-send-email-balbi-l0cyMroinI0@public.gmane.org>
2014-04-30 16:38   ` [PATCH 2/3] usb: phy: msm: switch over to writel() Felipe Balbi
2014-05-03  6:58     ` Ivan T. Ivanov
2014-05-03  6:56   ` [PATCH 1/3] usb: phy: msm: cast to unsigned long int Ivan T. Ivanov
2014-05-05 15:03     ` Felipe Balbi
2014-05-05 15:30       ` Felipe Balbi
2014-04-30 16:38 ` [PATCH 3/3] usb: phy: msm: enable build on other architectures Felipe Balbi
2014-05-03  7:00   ` Ivan T. Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).