diff options
author | Bin Liu <b-liu@ti.com> | 2015-11-20 22:13:07 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-12-16 16:07:25 (GMT) |
commit | 5306661eff1a70f99456340eddf8e0cf85c2e8af (patch) | |
tree | 88ecea2605676dcc1a66debc6c68362d8832b6a9 /drivers/usb/phy/phy-am335x-control.h | |
parent | 375da6271b685e97d2d936fffa6e405b93674c26 (diff) | |
download | linux-5306661eff1a70f99456340eddf8e0cf85c2e8af.tar.xz |
usb: phy: correct the am335x phy header filename
The filename of am35x-phy-control.h is confusing. The header is used
by the am335x phy driver, but the filename refers to am35x. Even worse
there is indeed another device called am35x but it does not use this
header at all.
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-am335x-control.h')
-rw-r--r-- | drivers/usb/phy/phy-am335x-control.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-am335x-control.h b/drivers/usb/phy/phy-am335x-control.h new file mode 100644 index 0000000..b96594d --- /dev/null +++ b/drivers/usb/phy/phy-am335x-control.h @@ -0,0 +1,21 @@ +#ifndef _AM335x_PHY_CONTROL_H_ +#define _AM335x_PHY_CONTROL_H_ + +struct phy_control { + void (*phy_power)(struct phy_control *phy_ctrl, u32 id, bool on); + void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on); +}; + +static inline void phy_ctrl_power(struct phy_control *phy_ctrl, u32 id, bool on) +{ + phy_ctrl->phy_power(phy_ctrl, id, on); +} + +static inline void phy_ctrl_wkup(struct phy_control *phy_ctrl, u32 id, bool on) +{ + phy_ctrl->phy_wkup(phy_ctrl, id, on); +} + +struct phy_control *am335x_get_phy_control(struct device *dev); + +#endif |