u-boot/drivers/usb
Andre Heider a64a614db7 usb: gadget: sdp: fix pointer cast warnings for 64bit archs
The SDP protocol contains multiple 32bit pointers. Add a helper function
to get a valid pointer from these values and use it.

This fixes the following warnings:

drivers/usb/gadget/f_sdp.c: In function ‘sdp_rx_data_complete’:
drivers/usb/gadget/f_sdp.c:347:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   memcpy((void *)sdp->dnl_address, req->buf + 1, datalen);
          ^
drivers/usb/gadget/f_sdp.c: In function ‘sdp_jump_imxheader’:
drivers/usb/gadget/f_sdp.c:625:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  entry = (void *)headerv2->entry;
          ^
drivers/usb/gadget/f_sdp.c: In function ‘sdp_handle_in_ep’:
drivers/usb/gadget/f_sdp.c:668:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   memcpy(&data[1], (void *)sdp_func->dnl_address, datalen);
                    ^
drivers/usb/gadget/f_sdp.c:679:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   status = sdp_jump_imxheader((void *)sdp_func->jmp_address);
                               ^

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-02-21 20:28:15 +01:00
..
common armv8: ls1043a/ls2080a: check SoC by device ID 2017-12-13 13:40:29 -08:00
dwc3 usb: dwc3-uniphier: replace <common.h> with <linux/bitops.h> 2017-10-15 22:32:24 +09:00
emul dm: usb: emul: Drop usb_emul_reset() 2017-10-01 16:32:51 +02:00
eth treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
gadget usb: gadget: sdp: fix pointer cast warnings for 64bit archs 2018-02-21 20:28:15 +01:00
host usb: host: xhci-omap: Remove redundant board_usb_init and board_usb_cleanup functions 2018-02-15 13:44:30 +01:00
musb Convert CONFIG_USB_MUSB_HCD et al to Kconfig 2018-01-22 16:43:29 -05:00
musb-new Convert CONFIG_USB_MUSB_OMAP2PLUS et al to Kconfig 2018-01-22 16:43:29 -05:00
phy Convert CONFIG_ROCKCHIP_USB2_PHY to Kconfig 2018-01-22 16:43:30 -05:00
ulpi usb: ulpi: kconfig: Remove meaningless choice default 2018-02-05 20:58:12 -05:00
Kconfig Convert CONFIG_TWL4030_USB to Kconfig 2018-01-22 16:43:30 -05:00