Re: [PATCH v4 1/5] Core files for the DWC2 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux