usb: renesas_usbhs: fixup __usbhs_for_each_pipe 1st pos
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 16 Oct 2012 06:24:55 +0000 (23:24 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 19 Mar 2018 18:58:22 +0000 (18:58 +0000)
commit3cecd88c3f70ed1791368ed26447a9c7e49a4378
treefedc001c94946e610c30f8744963aad9860b3c00
parent71b7bc7a37b8d13c8efdb65da0d68e904df2bf6d
usb: renesas_usbhs: fixup __usbhs_for_each_pipe 1st pos

commit c2fa3edc58a262dfcb7aea78e24661e90e00098c upstream.

__usbhs_for_each_pipe() is the macro which moves around each pipe,
but it has a bug which didn't care about 1st pipe's position.
Because of this bug, it moves around
pipe0, pipe2, pipe3 ... even though it requested pipe1, pipe2, pipe3...
This patch modifies it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/renesas_usbhs/pipe.h