]> git.ipfire.org Git - people/ms/u-boot.git/commit
usb: dwc2: make casts of ep->dma_buf consistent
authorTom Rini <trini@konsulko.com>
Mon, 5 Feb 2018 14:51:50 +0000 (09:51 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 5 Feb 2018 17:09:43 +0000 (12:09 -0500)
commita4d403290e32f95cfd254f2778e08f655ddd5a49
tree0e5c4f60f0f88320d41bc86460050be71295e99a
parent7e13f1d08fa85af97d11d9d13d506efdabd3db4d
usb: dwc2: make casts of ep->dma_buf consistent

In most places in the code we cast this to an unsigned long, but in one
place we cast to an unsigned int.  For consistency and to fix a warning
on 64bit targets, always cast this to unsigned long.  For the long term
we should however change the declaration of dma_buf.

Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Lukasz Majewski <lukma@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c