perf python: Do not force closing original perf descriptor in evlist.get_pollfd()
[linux/fpc-iii.git] / drivers / usb / phy / phy-am335x-control.h
blobcd4acfc6e360644730ae66bb723d722099269462
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _AM335x_PHY_CONTROL_H_
3 #define _AM335x_PHY_CONTROL_H_
5 struct phy_control {
6 void (*phy_power)(struct phy_control *phy_ctrl, u32 id,
7 enum usb_dr_mode dr_mode, bool on);
8 void (*phy_wkup)(struct phy_control *phy_ctrl, u32 id, bool on);
9 };
11 static inline void phy_ctrl_power(struct phy_control *phy_ctrl, u32 id,
12 enum usb_dr_mode dr_mode, bool on)
14 phy_ctrl->phy_power(phy_ctrl, id, dr_mode, on);
17 static inline void phy_ctrl_wkup(struct phy_control *phy_ctrl, u32 id, bool on)
19 phy_ctrl->phy_wkup(phy_ctrl, id, on);
22 struct phy_control *am335x_get_phy_control(struct device *dev);
24 #endif