altos/lpc: Clean up USB endpoint access functions
authorKeith Packard <keithp@keithp.com>
Fri, 6 Feb 2015 00:08:44 +0000 (16:08 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 6 Feb 2015 00:14:23 +0000 (16:14 -0800)
commit0671b3c8c24c9f33be77a10315c4669f33c516d7
tree59532fd899721935da42b7f06201125c10da7ac4
parenta01ce949611b0c18df54c3f3877a43d27699c258
altos/lpc: Clean up USB endpoint access functions

The USB device endpoints can have two pointers in them, but we use
only the first. Fix the access functions to take an index as to which
we want so that we can disable the other address registers with them
instead of requiring open-coded access.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/ao_usb_lpc.c