summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-generic.h
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2014-12-06 22:05:13 +0100
committerFelipe Balbi <balbi@ti.com>2015-01-12 12:13:29 -0600
commite9f2cefb0cdc2aea8b70dbf68a3f78b88e57cf34 (patch)
tree68ed0c31987ffa61c5e86045683c357c5570d7f9 /drivers/usb/phy/phy-generic.h
parente3a912a124c380db61eff762faa0547ea4c90eb4 (diff)
downloadblackbird-op-linux-e9f2cefb0cdc2aea8b70dbf68a3f78b88e57cf34.tar.gz
blackbird-op-linux-e9f2cefb0cdc2aea8b70dbf68a3f78b88e57cf34.zip
usb: phy: generic: migrate to gpio_desc
Change internal gpio handling from integer gpios into gpio descriptors. This change only addresses the internal API and device-tree/ACPI, while the legacy platform data remains integer space based. This change is only build compile tested, and very prone to error. I leave this comment for now in the commit message so that this patch gets some testing as I'm pretty sure it's buggy. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-generic.h')
-rw-r--r--drivers/usb/phy/phy-generic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-generic.h b/drivers/usb/phy/phy-generic.h
index d8feacc0b7fb..09924fdaaabe 100644
--- a/drivers/usb/phy/phy-generic.h
+++ b/drivers/usb/phy/phy-generic.h
@@ -2,14 +2,14 @@
#define _PHY_GENERIC_H_
#include <linux/usb/usb_phy_generic.h>
+#include <linux/gpio/consumer.h>
struct usb_phy_generic {
struct usb_phy phy;
struct device *dev;
struct clk *clk;
struct regulator *vcc;
- int gpio_reset;
- bool reset_active_low;
+ struct gpio_desc *gpiod_reset;
};
int usb_gen_phy_init(struct usb_phy *phy);
OpenPOWER on IntegriCloud