Re: [PATCH 1/4] usb: dwc3: move all string helper functions to debug.h

2014-09-05 Thread Felipe Balbi
Hi, On Fri, Sep 05, 2014 at 06:23:24PM +, Paul Zimmerman wrote: > > +static inline const char *dwc3_ep_event_string(u8 event) > > +{ > > + switch (event) { > > + case DWC3_DEPEVT_XFERCOMPLETE: > > + return "Transfer Complete"; > > + case DWC3_DEPEVT_XFERINPROGRESS: > > +

RE: [PATCH 1/4] usb: dwc3: move all string helper functions to debug.h

2014-09-05 Thread Paul Zimmerman
> From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Friday, September 05, 2014 7:56 AM > > Those functions are only using within debugging > messages, grouping them into debug.h makes sense. > > While at that, also add missing multiple inclusion > guard. > > Signed-off-by: Felipe Balbi > --- >

[PATCH 1/4] usb: dwc3: move all string helper functions to debug.h

2014-09-05 Thread Felipe Balbi
Those functions are only using within debugging messages, grouping them into debug.h makes sense. While at that, also add missing multiple inclusion guard. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/debug.h | 164 +- drivers/usb/dwc3/ep0.c|