mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 08:17:46 +00:00

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>
21 lines
543 B
C
21 lines
543 B
C
#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
|