u-boot/drivers/usb/gadget
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
..
udc Various Makefiles: Add SPDX-License-Identifier tags 2015-11-10 09:19:52 -05:00
at91_udc.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
at91_udc.h Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
atmel_usba_udc.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
atmel_usba_udc.h avr32: Retire AVR32 for good 2017-07-06 16:17:19 -04:00
bcm_udc_otg.h usb: gadget: bcm_udc_otg files 2015-07-22 08:57:54 +02:00
bcm_udc_otg_phy.c usb: bcm_udc_otg: enable clocks 2016-04-10 17:18:43 +02:00
ci_udc.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
ci_udc.h ci_udc: Update the ci_udc driver to support bulk transfers 2015-05-29 12:41:04 +02:00
composite.c usb: gadget: composite: Correct recovery path for register 2016-03-01 14:47:26 +01:00
config.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
core.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
designware_udc.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
dwc2_udc_otg.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
dwc2_udc_otg_phy.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
dwc2_udc_otg_priv.h treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
dwc2_udc_otg_regs.h usb: dwc2-otg: adjust fifo size via platform data 2016-07-25 20:44:19 -06:00
dwc2_udc_otg_xfer_dma.c usb: dwc2: make casts of ep->dma_buf consistent 2018-02-05 12:09:43 -05:00
ep0.c cosmetic: replace MIN, MAX with min, max 2014-09-24 18:30:29 -04:00
ep0.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
epautoconf.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
ether.c Merge git://git.denx.de/u-boot-sunxi 2017-10-05 08:26:36 -04:00
f_dfu.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
f_dfu.h usb: gadget: dfu: add result for handle_getstatus() 2017-02-26 13:24:30 +01:00
f_fastboot.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
f_mass_storage.c ums: support multiple LUNs at once 2016-01-13 21:05:19 -05:00
f_rockusb.c usb: rockchip: add the rockusb gadget 2018-01-10 11:11:05 +01:00
f_sdp.c usb: gadget: sdp: fix pointer cast warnings for 64bit archs 2018-02-21 20:28:15 +01:00
f_thor.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
f_thor.h f_thor: Dont perform reset at the end of thor 2015-09-07 13:41:03 +02:00
fotg210.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
g_dnl.c usb: gadget: Make g_dnl USB settings common 2017-10-03 19:12:05 +02:00
gadget_chips.h powerpc, 8260: remove support for mpc8260 2017-06-12 08:38:02 -04:00
Kconfig Kconfig: gadget: Move CONFIG_USB_FUNCTION_MASS_STORAGE to Kconfig 2018-02-02 07:13:48 -05:00
Makefile usb: rockchip: add the rockusb gadget 2018-01-10 11:11:05 +01:00
ndis.h USB: Add USB RNDIS gadget protocol 2011-02-19 20:32:37 +01:00
pxa25x_udc.c usb: modify usb_gadget_handle_interrupts to take controller index 2015-04-14 05:48:11 +02:00
pxa25x_udc.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
pxa27x_udc.c usb: pxa27x_udc: clean-up include file order 2015-08-24 20:30:38 +02:00
rndis.c drivers: usb: gadget: ether/rndis: convert driver to adopt device driver model 2017-01-09 11:14:54 -07:00
rndis.h drivers: usb: gadget: ether/rndis: convert driver to adopt device driver model 2017-01-09 11:14:54 -07:00
storage_common.c usb: gadget: storage: Increase FSG_BUFLEN 2017-11-26 02:22:36 +01:00
usbstring.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00