Skip to contentSkip to conversation

musb_hdrc, remove MGC_ReadCsr16()

PATCH In review David Brownell 1 participant 1 message Jan 18, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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...

drivers/usb/musb/musbdefs.h +0 -4
Index: o26/drivers/usb/musb/musbdefs.h
===================================================================
@@ -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