mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-22 20:24:27 +01:00
The regs_otg field in uintptr_t of the platform data structure for
dwc2-otg has thus far been an unsigned int, but will eventually be
casted into a void*.
This raises the following error with GCC 6.3 and buildman:
../drivers/usb/gadget/dwc2_udc_otg.c: In function 'dwc2_udc_probe':
../drivers/usb/gadget/dwc2_udc_otg.c:821:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
reg = (struct dwc2_usbotg_reg *)pdata->regs_otg;
^
This changes regs_otg to a uintptr_t to ensure that it is large enough
to hold any valid pointer (and fix the associated warning).
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
|
||
|---|---|---|
| .. | ||
| ci_udc.h | ||
| designware_udc.h | ||
| dwc2_udc.h | ||
| ehci-ci.h | ||
| fotg210.h | ||
| fusbh200.h | ||
| lin_gadget_compat.h | ||
| mpc8xx_udc.h | ||
| pxa27x_udc.h | ||
| udc.h | ||
| ulpi.h | ||