]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: gadget: udc: atmel: GPIO inversion is handled by gpiod
authorRomain Izard <romain.izard.pro@gmail.com>
Fri, 11 May 2018 10:19:54 +0000 (12:19 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 May 2018 07:24:44 +0000 (10:24 +0300)
commita3e20083bd7cdf6163923d9de2f4b62b2a0cbed4
tree29f70cfc46e33312c79016105475bfc168411170
parent1ca532e9916a277b0e87271e6b367a3774808035
usb: gadget: udc: atmel: GPIO inversion is handled by gpiod

When converting to GPIO descriptors, gpiod_get_value automatically
handles the line inversion flags from the device tree.

Do not invert the line twice.

Fixes: 3df034081021 ("usb: gadget: udc: atmel: convert to use GPIO descriptors")
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/atmel_usba_udc.c
drivers/usb/gadget/udc/atmel_usba_udc.h