summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-samsung-usb.h
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-05-16 11:57:10 +0200
committerFelipe Balbi <balbi@ti.com>2013-05-28 20:07:15 +0300
commit84035f09adf81c2554bb39ff100651f167f7d384 (patch)
tree20c7257c35ace183471cb85a520cb5ad8459c18f /drivers/usb/phy/phy-samsung-usb.h
parent3f339074edfa0d531edaa6bd095f718e58b50a7d (diff)
usb: phy: samsung: Pass enable/disable callbacks through driver data
To remove unnecessary if statements, this patch introduces phy_enable and phy_disable callbacks in driver data structure that implement SoC-specific PHY initialization and deinitialization. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-samsung-usb.h')
-rw-r--r--drivers/usb/phy/phy-samsung-usb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-samsung-usb.h b/drivers/usb/phy/phy-samsung-usb.h
index 52037841ff2e..31e2ec3b2eb9 100644
--- a/drivers/usb/phy/phy-samsung-usb.h
+++ b/drivers/usb/phy/phy-samsung-usb.h
@@ -272,6 +272,8 @@ struct samsung_usbphy_drvdata {
u32 hostphy_reg_offset;
int (*rate_to_clksel)(struct samsung_usbphy *, unsigned long);
void (*set_isolation)(struct samsung_usbphy *, bool);
+ void (*phy_enable)(struct samsung_usbphy *);
+ void (*phy_disable)(struct samsung_usbphy *);
};
/*