musb_hdrc, remove MGC_ReadCsr16()
Subsystems (2)
PATCH 2/3 musb_hdrc, remove MGC_ReadCsr16()
More camelcase fixes: remove MGC_ReadCsr16.
Note that these changes are not just code cleanup, but they're also code shrinks and speedups because the endpoint access routines no longer need to calclate the offsets they're using...
Signed-off-by David Brownell <[email protected]>
drivers/usb/musb/musbdefs.h +0 -4
@@ -232,13 +232,9 @@ enum musb_g_ep0_state {* using hw_ep->regs, for all access except writing INDEX */ #ifdef MUSB_FLAT_REG -#define MGC_ReadCsr16 (_pBase, _bOffset, _bEnd) \ - musb_readw((_pBase), MGC_END_OFFSET((_bEnd), (_bOffset)))#define MGC_WriteCsr16 (_pBase, _bOffset, _bEnd, _bData) \ musb_writew((_pBase), MGC_END_OFFSET((_bEnd), (_bOffset)), (_bData))#else -#define MGC_ReadCsr16 (_pBase, _bOffset, _bEnd) \ - musb_readw(_pBase, (_bOffset + 0x10))#define MGC_WriteCsr16 (_pBase, _bOffset, _bEnd, _bData) \ musb_writew(_pBase, (_bOffset + 0x10), _bData)#endif
drivers/usb/musb/musb_gadget.c +33 -39
230 lines not on this page · raw message
drivers/usb/musb/musb_host.c +22 -24
169 lines not on this page · raw message