diff options
author | Tomasz Figa <t.figa@samsung.com> | 2013-05-16 13:57:09 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-05-28 21:06:49 +0400 |
commit | 3f339074edfa0d531edaa6bd095f718e58b50a7d (patch) | |
tree | ec7554d94bdff7ded19e0c269425a19b055c43e4 /drivers/usb/phy/phy-samsung-usb.h | |
parent | 0aa823a2ca02cd21c587713e8195a2ffb8bd7872 (diff) | |
download | linux-3f339074edfa0d531edaa6bd095f718e58b50a7d.tar.xz |
usb: phy: samsung: Pass set_isolation callback through driver data
This patch extends driver data structure with set_isolation callback,
which allows to remove the need for checking for SoC type in a switch
statement.
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-samsung-usb.h b/drivers/usb/phy/phy-samsung-usb.h index 0336f6b02bc4..52037841ff2e 100644 --- a/drivers/usb/phy/phy-samsung-usb.h +++ b/drivers/usb/phy/phy-samsung-usb.h @@ -271,6 +271,7 @@ struct samsung_usbphy_drvdata { u32 devphy_reg_offset; u32 hostphy_reg_offset; int (*rate_to_clksel)(struct samsung_usbphy *, unsigned long); + void (*set_isolation)(struct samsung_usbphy *, bool); }; /* @@ -323,7 +324,8 @@ static inline const struct samsung_usbphy_drvdata } extern int samsung_usbphy_parse_dt(struct samsung_usbphy *sphy); -extern void samsung_usbphy_set_isolation(struct samsung_usbphy *sphy, bool on); +extern void samsung_usbphy_set_isolation_4210(struct samsung_usbphy *sphy, + bool on); extern void samsung_usbphy_cfg_sel(struct samsung_usbphy *sphy); extern int samsung_usbphy_set_type(struct usb_phy *phy, enum samsung_usb_phy_type phy_type); |