diff options
Diffstat (limited to 'include/linux/usb/phy.h')
| -rw-r--r-- | include/linux/usb/phy.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h index a812ed5a1691..359db7de61e4 100644 --- a/include/linux/usb/phy.h +++ b/include/linux/usb/phy.h | |||
| @@ -124,6 +124,7 @@ struct usb_phy_bind { | |||
| 124 | 124 | ||
| 125 | /* for board-specific init logic */ | 125 | /* for board-specific init logic */ |
| 126 | extern int usb_add_phy(struct usb_phy *, enum usb_phy_type type); | 126 | extern int usb_add_phy(struct usb_phy *, enum usb_phy_type type); |
| 127 | extern int usb_add_phy_dev(struct usb_phy *); | ||
| 127 | extern void usb_remove_phy(struct usb_phy *); | 128 | extern void usb_remove_phy(struct usb_phy *); |
| 128 | 129 | ||
| 129 | /* helpers for direct access thru low-level io interface */ | 130 | /* helpers for direct access thru low-level io interface */ |
| @@ -164,6 +165,8 @@ usb_phy_shutdown(struct usb_phy *x) | |||
| 164 | extern struct usb_phy *usb_get_phy(enum usb_phy_type type); | 165 | extern struct usb_phy *usb_get_phy(enum usb_phy_type type); |
| 165 | extern struct usb_phy *devm_usb_get_phy(struct device *dev, | 166 | extern struct usb_phy *devm_usb_get_phy(struct device *dev, |
| 166 | enum usb_phy_type type); | 167 | enum usb_phy_type type); |
| 168 | extern struct usb_phy *usb_get_phy_dev(struct device *dev, u8 index); | ||
| 169 | extern struct usb_phy *devm_usb_get_phy_dev(struct device *dev, u8 index); | ||
| 167 | extern void usb_put_phy(struct usb_phy *); | 170 | extern void usb_put_phy(struct usb_phy *); |
| 168 | extern void devm_usb_put_phy(struct device *dev, struct usb_phy *x); | 171 | extern void devm_usb_put_phy(struct device *dev, struct usb_phy *x); |
| 169 | extern int usb_bind_phy(const char *dev_name, u8 index, | 172 | extern int usb_bind_phy(const char *dev_name, u8 index, |
| @@ -180,6 +183,16 @@ static inline struct usb_phy *devm_usb_get_phy(struct device *dev, | |||
| 180 | return NULL; | 183 | return NULL; |
| 181 | } | 184 | } |
| 182 | 185 | ||
| 186 | static inline struct usb_phy *usb_get_phy_dev(struct device *dev, u8 index) | ||
| 187 | { | ||
| 188 | return NULL; | ||
| 189 | } | ||
| 190 | |||
| 191 | static inline struct usb_phy *devm_usb_get_phy_dev(struct device *dev, u8 index) | ||
| 192 | { | ||
| 193 | return NULL; | ||
| 194 | } | ||
| 195 | |||
| 183 | static inline void usb_put_phy(struct usb_phy *x) | 196 | static inline void usb_put_phy(struct usb_phy *x) |
| 184 | { | 197 | { |
| 185 | } | 198 | } |
