Skip to content

Commit

Permalink
usb: renesas_usbhs: fixup usbhsg_for_each_uep 1st pos
Browse files Browse the repository at this point in the history
1st pos of __usbhsg_for_each_uep() was wrong.
Expected uep were ep1, ep2, ep3...
but each uep were ep0, ep2, ep3 ...
This patch modify it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kuninori Morimoto authored and Greg Kroah-Hartman committed Aug 8, 2011
1 parent d128a25 commit e94c587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/renesas_usbhs/mod_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct usbhsg_recip_handle {
struct usbhsg_gpriv, mod)

#define __usbhsg_for_each_uep(start, pos, g, i) \
for (i = start, pos = (g)->uep; \
for (i = start, pos = (g)->uep + i; \
i < (g)->uep_size; \
i++, pos = (g)->uep + i)

Expand Down

0 comments on commit e94c587

Please sign in to comment.