Hi,
On Tue, Feb 19, 2013 at 06:50:04PM -0800, Paul Zimmerman wrote:
> +static const char *dwc2_op_state_str(struct dwc2_hsotg *hsotg)
> +{
> +#ifdef DEBUG
> + switch (hsotg->op_state) {
> + case OTG_STATE_A_HOST:
> + return "a_host";
> + case OTG_STATE_A_SUSPEND:
> + return "a_suspend";
> + case OTG_STATE_A_PERIPHERAL:
> + return "a_peripheral";
> + case OTG_STATE_B_PERIPHERAL:
> + return "b_peripheral";
> + case OTG_STATE_B_HOST:
> + return "b_host";
> + default:
> + return "unknown";
> + }
> +#else
> + return "";
> +#endif
> +}you could define this generically under drivers/usb/usb-common.c -- balbi
signature.asc
Description: Digital signature
