usb: renesas_usbhs: tidyup usbhs_for_each_dfifo macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 14 Apr 2015 04:10:04 +0000 (04:10 +0000)
committerFelipe Balbi <balbi@ti.com>
Mon, 27 Apr 2015 20:48:33 +0000 (15:48 -0500)
commit2d9c7f3ca54625f4d740af78f84ee232da3ca937
treeadbdb193146e56bacf4d9aea3e6cd1ff5a1d2e03
parent87841c887b7b78742d9f8e5da890ed4af21dd978
usb: renesas_usbhs: tidyup usbhs_for_each_dfifo macro

Current usbhs_for_each_dfifo macro will read out-of-array's
memory after last loop operation.
It was not good C language operation, and the binary which was
compiled by (at least) gcc 4.8.1 is broken.

This patch is based on
925403f425a4a9c503f2fc295652647b1eb10d82
(usb: renesas_usbhs: tidyup original usbhsx_for_each_xxx macro)

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/fifo.h