]> git.baikalelectronics.ru Git - kernel.git/commit
usb: isp1760: Use the gpio descriptor API
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 20 Jan 2015 22:55:40 +0000 (00:55 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Jan 2015 15:38:03 +0000 (09:38 -0600)
commitb8731a4d18bdc4397b4b57822a504427c984dfa7
tree75dc87a6630c536fdf3b696542dec4bdf6a86267
parent76686e51bbc720c1d98a40128a5b4c4a0246abb6
usb: isp1760: Use the gpio descriptor API

Switching to the managed gpio descriptor API simplifies both error and
cleanup code paths (by removing the need to free the gpio) and runtime
code (by removing manual handling of the active low flag). It also
permits handling the reset gpio entirely from within the HCD code,
sharing it between the different glue layers.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/host/isp1760-hcd.c
drivers/usb/host/isp1760-hcd.h
drivers/usb/host/isp1760-if.c