Re: [uclinux-dist-devel] [PATCH] drivers: usb: musb: add bf60x support

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

 



On Wednesday 23 May 2012 06:09:49 Bob Liu wrote:
>  		if (!(val & MUSB_DEVCTL_BDEVICE)) {
> +#ifndef CONFIG_BF60x
>  			gpio_set_value(musb->config->gpio_vrsel, 1);
> +#endif
>  			musb->xceiv->state = OTG_STATE_A_WAIT_BCON;
>  		} else {
> +#ifndef CONFIG_BF60x
>  			gpio_set_value(musb->config->gpio_vrsel, 0);
> +#endif

this really should get macro-ed away in the blackfin musb header file

#ifndef CONFIG_BF60x
# define vrsel_set_value(val) gpio_set_value(musb->config->gpio_vrsel, val)
#else
# define vrsel_set_value(val) do { } while (0)
#endif
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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

  Powered by Linux