OSDN Git Service

usb: ohci-omap: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Jul 2020 13:55:24 +0000 (15:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2020 11:42:37 +0000 (13:42 +0200)
commit15d157e874437e381643c37a10922388d6e55b29
tree6758f45e64bcc9fb427f73655e2407b4fe16ebfa
parent233418634345b414595dc12afd07021169fc6d8e
usb: ohci-omap: Convert to use GPIO descriptors

The OMAP1 OHCI driver is using the legacy GPIO API to grab some
random GPIO lines. One is from the TPS65010 chip and used for
power, another one is for overcurrent and while the driver picks
this line it doesn't watch it at all.

Convert the driver and the OMAP1 OSK board file to pass these
two GPIOs as machine described GPIO descriptors.

I noticed the overcurrent GPIO line is not really used in the
code so dropped in a little comment for other developers.

Cc: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20200720135524.100374-2-linus.walleij@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap1/board-osk.c
drivers/usb/host/ohci-omap.c