USB: atmel uaba: Adding invert vbus_pin
authorEirik Aanonsen <EAA@wprmedical.com>
Fri, 5 Feb 2010 08:49:25 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:57 +0000 (14:54 -0800)
commit640e95abdfae9fef5949084c92e80c8f2f8b5ec5
treef8cb60315b5b362b53777c0e11650e681c9c3b65
parent90f7976880bbbf9968629500972f8e2f80401217
USB: atmel uaba: Adding invert vbus_pin

Adding vbus_pin_inverted so that the usb detect pin can be active high
or low depending on HW implementation also replaced the
gpio_get_value(udc->vbus_pin); with a call to vbus_is_present(udc); This
allows the driver to be loaded and save about 0,15W on the consumption.

Signed-off-by: Eirik Aanonsen <eaa@wprmedical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/avr32/mach-at32ap/at32ap700x.c
drivers/usb/gadget/atmel_usba_udc.c
drivers/usb/gadget/atmel_usba_udc.h
include/linux/usb/atmel_usba_udc.h