linux/drivers/usb/dwc3
Uwe Kleine-König 2df033ca39 usb: dwc3: pci: make better use of gpiod API
Since 39b2bbe3d7 (gpio: add flags argument to gpiod_get*() functions)
which appeared in v3.17-rc1, the gpiod_get* functions take an additional
parameter that allows to specify direction and initial value for output.

Use this additional parameter and the _optional variant to simplify the
driver and improve error handling. Also expand the comment to explain
why it's not sensible to switch to devm_gpiod_get and why the gpiod_put
is also necessary.

Furthermore this is one caller less that stops us making the flags
argument to gpiod_get*() mandatory.

Tested-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-07-29 09:59:18 -05:00
..
core.c usb: dwc3: core: avoid NULL pointer dereference 2015-07-06 12:34:08 -05:00
core.h Merge 4.1-rc7 into usb-next 2015-06-08 10:57:51 -07:00
debug.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
debug.h usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
debugfs.c usb: dwc3: switch to GPL v2 only 2013-07-29 13:56:44 +03:00
dwc3-exynos.c usb: dwc3: exynos: switch dev_dbg() to dev_info() 2015-07-29 09:59:17 -05:00
dwc3-keystone.c usb: dwc3: keystone: convert dev_dbg() to dev_err() 2015-07-29 09:59:17 -05:00
dwc3-omap.c usb: dwc3: omap: Replace deprecated API of extcon 2015-07-29 09:59:18 -05:00
dwc3-pci.c usb: dwc3: pci: make better use of gpiod API 2015-07-29 09:59:18 -05:00
dwc3-qcom.c usb: dwc3: qcom: switch dev_dbg() to dev_info() 2015-07-29 09:59:17 -05:00
dwc3-st.c usb: dwc3: st: remove two unnecessary messages 2015-07-29 09:59:17 -05:00
ep0.c usb: dwc3: Reset the transfer resource index on SET_INTERFACE 2015-07-22 08:52:42 -05:00
gadget.c usb: dwc3: gadget: don't clear EP_BUSY too early 2015-05-29 10:19:51 -05:00
gadget.h usb: dwc3: gadget: fix set_halt() bug with pending transfers 2014-10-20 15:58:48 -05:00
host.c usb: dwc3: make LPM configurable in DT 2015-03-10 15:33:33 -05:00
io.h usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
Kconfig usb: dwc3: drop CONFIG_USB_DWC3_DEBUG 2015-07-29 09:59:18 -05:00
Makefile usb: dwc3: drop CONFIG_USB_DWC3_DEBUG 2015-07-29 09:59:18 -05:00
platform_data.h usb: dwc3: add hsphy_interface property 2015-05-13 12:06:42 -05:00
trace.c usb: dwc3: add tracepoints to aid debugging 2014-09-05 09:55:51 -05:00
trace.h usb: dwc3: trace: add trace logs for core and gadget 2015-01-27 13:56:10 -06:00
ulpi.c usb: dwc3: add ULPI interface support 2015-05-13 12:06:52 -05:00