Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 1 | /* |
| 2 | * phy.h -- generic phy header file |
| 3 | * |
| 4 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com |
| 5 | * |
| 6 | * Author: Kishon Vijay Abraham I <kishon@ti.com> |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | */ |
| 13 | |
| 14 | #ifndef __DRIVERS_PHY_H |
| 15 | #define __DRIVERS_PHY_H |
| 16 | |
| 17 | #include <linux/err.h> |
| 18 | #include <linux/of.h> |
| 19 | #include <linux/device.h> |
| 20 | #include <linux/pm_runtime.h> |
Roger Quadros | 3be8812 | 2014-07-04 12:55:45 +0300 | [diff] [blame] | 21 | #include <linux/regulator/consumer.h> |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 22 | |
| 23 | struct phy; |
| 24 | |
David Lechner | 300eb01 | 2016-05-09 18:39:59 -0500 | [diff] [blame] | 25 | enum phy_mode { |
| 26 | PHY_MODE_INVALID, |
| 27 | PHY_MODE_USB_HOST, |
| 28 | PHY_MODE_USB_DEVICE, |
| 29 | PHY_MODE_USB_OTG, |
| 30 | }; |
| 31 | |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 32 | /** |
| 33 | * struct phy_ops - set of function pointers for performing phy operations |
| 34 | * @init: operation to be performed for initializing phy |
| 35 | * @exit: operation to be performed while exiting |
| 36 | * @power_on: powering on the phy |
| 37 | * @power_off: powering off the phy |
David Lechner | 300eb01 | 2016-05-09 18:39:59 -0500 | [diff] [blame] | 38 | * @set_mode: set the mode of the phy |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 39 | * @owner: the module owner containing the ops |
| 40 | */ |
| 41 | struct phy_ops { |
| 42 | int (*init)(struct phy *phy); |
| 43 | int (*exit)(struct phy *phy); |
| 44 | int (*power_on)(struct phy *phy); |
| 45 | int (*power_off)(struct phy *phy); |
David Lechner | 300eb01 | 2016-05-09 18:39:59 -0500 | [diff] [blame] | 46 | int (*set_mode)(struct phy *phy, enum phy_mode mode); |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 47 | struct module *owner; |
| 48 | }; |
| 49 | |
| 50 | /** |
Matt Porter | 8feed34 | 2013-12-19 09:23:02 -0500 | [diff] [blame] | 51 | * struct phy_attrs - represents phy attributes |
| 52 | * @bus_width: Data path width implemented by PHY |
| 53 | */ |
| 54 | struct phy_attrs { |
| 55 | u32 bus_width; |
| 56 | }; |
| 57 | |
| 58 | /** |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 59 | * struct phy - represents the phy device |
| 60 | * @dev: phy device |
| 61 | * @id: id of the phy device |
| 62 | * @ops: function pointers for performing phy operations |
| 63 | * @init_data: list of PHY consumers (non-dt only) |
| 64 | * @mutex: mutex to protect phy_ops |
| 65 | * @init_count: used to protect when the PHY is used by multiple consumers |
| 66 | * @power_count: used to protect when the PHY is used by multiple consumers |
Matt Porter | 8feed34 | 2013-12-19 09:23:02 -0500 | [diff] [blame] | 67 | * @phy_attrs: used to specify PHY specific attributes |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 68 | */ |
| 69 | struct phy { |
| 70 | struct device dev; |
| 71 | int id; |
| 72 | const struct phy_ops *ops; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 73 | struct mutex mutex; |
| 74 | int init_count; |
| 75 | int power_count; |
Matt Porter | 8feed34 | 2013-12-19 09:23:02 -0500 | [diff] [blame] | 76 | struct phy_attrs attrs; |
Roger Quadros | 3be8812 | 2014-07-04 12:55:45 +0300 | [diff] [blame] | 77 | struct regulator *pwr; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 78 | }; |
| 79 | |
| 80 | /** |
| 81 | * struct phy_provider - represents the phy provider |
| 82 | * @dev: phy provider device |
| 83 | * @owner: the module owner having of_xlate |
| 84 | * @of_xlate: function pointer to obtain phy instance from phy pointer |
| 85 | * @list: to maintain a linked list of PHY providers |
| 86 | */ |
| 87 | struct phy_provider { |
| 88 | struct device *dev; |
Thierry Reding | 1140f7c | 2016-04-05 17:17:34 +0200 | [diff] [blame] | 89 | struct device_node *children; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 90 | struct module *owner; |
| 91 | struct list_head list; |
| 92 | struct phy * (*of_xlate)(struct device *dev, |
| 93 | struct of_phandle_args *args); |
| 94 | }; |
| 95 | |
Heikki Krogerus | b7bc15b | 2014-11-19 17:28:18 +0200 | [diff] [blame] | 96 | struct phy_lookup { |
| 97 | struct list_head node; |
| 98 | const char *dev_id; |
| 99 | const char *con_id; |
| 100 | struct phy *phy; |
| 101 | }; |
| 102 | |
Heikki Krogerus | d451057 | 2014-11-19 17:28:17 +0200 | [diff] [blame] | 103 | #define to_phy(a) (container_of((a), struct phy, dev)) |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 104 | |
| 105 | #define of_phy_provider_register(dev, xlate) \ |
Thierry Reding | 1140f7c | 2016-04-05 17:17:34 +0200 | [diff] [blame] | 106 | __of_phy_provider_register((dev), NULL, THIS_MODULE, (xlate)) |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 107 | |
| 108 | #define devm_of_phy_provider_register(dev, xlate) \ |
Thierry Reding | 1140f7c | 2016-04-05 17:17:34 +0200 | [diff] [blame] | 109 | __devm_of_phy_provider_register((dev), NULL, THIS_MODULE, (xlate)) |
| 110 | |
| 111 | #define of_phy_provider_register_full(dev, children, xlate) \ |
| 112 | __of_phy_provider_register(dev, children, THIS_MODULE, xlate) |
| 113 | |
| 114 | #define devm_of_phy_provider_register_full(dev, children, xlate) \ |
| 115 | __devm_of_phy_provider_register(dev, children, THIS_MODULE, xlate) |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 116 | |
| 117 | static inline void phy_set_drvdata(struct phy *phy, void *data) |
| 118 | { |
| 119 | dev_set_drvdata(&phy->dev, data); |
| 120 | } |
| 121 | |
| 122 | static inline void *phy_get_drvdata(struct phy *phy) |
| 123 | { |
| 124 | return dev_get_drvdata(&phy->dev); |
| 125 | } |
| 126 | |
| 127 | #if IS_ENABLED(CONFIG_GENERIC_PHY) |
| 128 | int phy_pm_runtime_get(struct phy *phy); |
| 129 | int phy_pm_runtime_get_sync(struct phy *phy); |
| 130 | int phy_pm_runtime_put(struct phy *phy); |
| 131 | int phy_pm_runtime_put_sync(struct phy *phy); |
| 132 | void phy_pm_runtime_allow(struct phy *phy); |
| 133 | void phy_pm_runtime_forbid(struct phy *phy); |
| 134 | int phy_init(struct phy *phy); |
| 135 | int phy_exit(struct phy *phy); |
| 136 | int phy_power_on(struct phy *phy); |
| 137 | int phy_power_off(struct phy *phy); |
David Lechner | 300eb01 | 2016-05-09 18:39:59 -0500 | [diff] [blame] | 138 | int phy_set_mode(struct phy *phy, enum phy_mode mode); |
Matt Porter | 8feed34 | 2013-12-19 09:23:02 -0500 | [diff] [blame] | 139 | static inline int phy_get_bus_width(struct phy *phy) |
| 140 | { |
| 141 | return phy->attrs.bus_width; |
| 142 | } |
| 143 | static inline void phy_set_bus_width(struct phy *phy, int bus_width) |
| 144 | { |
| 145 | phy->attrs.bus_width = bus_width; |
| 146 | } |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 147 | struct phy *phy_get(struct device *dev, const char *string); |
Andrew Lunn | 788a4d5 | 2014-02-04 18:33:12 +0100 | [diff] [blame] | 148 | struct phy *phy_optional_get(struct device *dev, const char *string); |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 149 | struct phy *devm_phy_get(struct device *dev, const char *string); |
Andrew Lunn | 788a4d5 | 2014-02-04 18:33:12 +0100 | [diff] [blame] | 150 | struct phy *devm_phy_optional_get(struct device *dev, const char *string); |
Kamil Debski | b5d682f | 2014-03-06 12:16:47 +0100 | [diff] [blame] | 151 | struct phy *devm_of_phy_get(struct device *dev, struct device_node *np, |
| 152 | const char *con_id); |
Arun Ramamurthy | 6be109b | 2015-04-22 16:04:11 -0700 | [diff] [blame] | 153 | struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np, |
| 154 | int index); |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 155 | void phy_put(struct phy *phy); |
| 156 | void devm_phy_put(struct device *dev, struct phy *phy); |
Kamil Debski | 0b3f3b2 | 2014-03-06 12:16:46 +0100 | [diff] [blame] | 157 | struct phy *of_phy_get(struct device_node *np, const char *con_id); |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 158 | struct phy *of_phy_simple_xlate(struct device *dev, |
| 159 | struct of_phandle_args *args); |
Kishon Vijay Abraham I | f0ed817 | 2014-07-14 15:55:02 +0530 | [diff] [blame] | 160 | struct phy *phy_create(struct device *dev, struct device_node *node, |
Heikki Krogerus | dbc9863 | 2014-11-19 17:28:21 +0200 | [diff] [blame] | 161 | const struct phy_ops *ops); |
Kishon Vijay Abraham I | f0ed817 | 2014-07-14 15:55:02 +0530 | [diff] [blame] | 162 | struct phy *devm_phy_create(struct device *dev, struct device_node *node, |
Heikki Krogerus | dbc9863 | 2014-11-19 17:28:21 +0200 | [diff] [blame] | 163 | const struct phy_ops *ops); |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 164 | void phy_destroy(struct phy *phy); |
| 165 | void devm_phy_destroy(struct device *dev, struct phy *phy); |
| 166 | struct phy_provider *__of_phy_provider_register(struct device *dev, |
Thierry Reding | 1140f7c | 2016-04-05 17:17:34 +0200 | [diff] [blame] | 167 | struct device_node *children, struct module *owner, |
| 168 | struct phy * (*of_xlate)(struct device *dev, |
| 169 | struct of_phandle_args *args)); |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 170 | struct phy_provider *__devm_of_phy_provider_register(struct device *dev, |
Thierry Reding | 1140f7c | 2016-04-05 17:17:34 +0200 | [diff] [blame] | 171 | struct device_node *children, struct module *owner, |
| 172 | struct phy * (*of_xlate)(struct device *dev, |
| 173 | struct of_phandle_args *args)); |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 174 | void of_phy_provider_unregister(struct phy_provider *phy_provider); |
| 175 | void devm_of_phy_provider_unregister(struct device *dev, |
| 176 | struct phy_provider *phy_provider); |
Heikki Krogerus | b7bc15b | 2014-11-19 17:28:18 +0200 | [diff] [blame] | 177 | int phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id); |
| 178 | void phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id); |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 179 | #else |
| 180 | static inline int phy_pm_runtime_get(struct phy *phy) |
| 181 | { |
Grygorii Strashko | 2b97789 | 2014-04-19 08:51:44 +0530 | [diff] [blame] | 182 | if (!phy) |
| 183 | return 0; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 184 | return -ENOSYS; |
| 185 | } |
| 186 | |
| 187 | static inline int phy_pm_runtime_get_sync(struct phy *phy) |
| 188 | { |
Grygorii Strashko | 2b97789 | 2014-04-19 08:51:44 +0530 | [diff] [blame] | 189 | if (!phy) |
| 190 | return 0; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 191 | return -ENOSYS; |
| 192 | } |
| 193 | |
| 194 | static inline int phy_pm_runtime_put(struct phy *phy) |
| 195 | { |
Grygorii Strashko | 2b97789 | 2014-04-19 08:51:44 +0530 | [diff] [blame] | 196 | if (!phy) |
| 197 | return 0; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 198 | return -ENOSYS; |
| 199 | } |
| 200 | |
| 201 | static inline int phy_pm_runtime_put_sync(struct phy *phy) |
| 202 | { |
Grygorii Strashko | 2b97789 | 2014-04-19 08:51:44 +0530 | [diff] [blame] | 203 | if (!phy) |
| 204 | return 0; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 205 | return -ENOSYS; |
| 206 | } |
| 207 | |
| 208 | static inline void phy_pm_runtime_allow(struct phy *phy) |
| 209 | { |
| 210 | return; |
| 211 | } |
| 212 | |
| 213 | static inline void phy_pm_runtime_forbid(struct phy *phy) |
| 214 | { |
| 215 | return; |
| 216 | } |
| 217 | |
| 218 | static inline int phy_init(struct phy *phy) |
| 219 | { |
Grygorii Strashko | 2b97789 | 2014-04-19 08:51:44 +0530 | [diff] [blame] | 220 | if (!phy) |
| 221 | return 0; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 222 | return -ENOSYS; |
| 223 | } |
| 224 | |
| 225 | static inline int phy_exit(struct phy *phy) |
| 226 | { |
Grygorii Strashko | 2b97789 | 2014-04-19 08:51:44 +0530 | [diff] [blame] | 227 | if (!phy) |
| 228 | return 0; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 229 | return -ENOSYS; |
| 230 | } |
| 231 | |
| 232 | static inline int phy_power_on(struct phy *phy) |
| 233 | { |
Grygorii Strashko | 2b97789 | 2014-04-19 08:51:44 +0530 | [diff] [blame] | 234 | if (!phy) |
| 235 | return 0; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 236 | return -ENOSYS; |
| 237 | } |
| 238 | |
| 239 | static inline int phy_power_off(struct phy *phy) |
| 240 | { |
Grygorii Strashko | 2b97789 | 2014-04-19 08:51:44 +0530 | [diff] [blame] | 241 | if (!phy) |
| 242 | return 0; |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 243 | return -ENOSYS; |
| 244 | } |
| 245 | |
David Lechner | 300eb01 | 2016-05-09 18:39:59 -0500 | [diff] [blame] | 246 | static inline int phy_set_mode(struct phy *phy, enum phy_mode mode) |
| 247 | { |
| 248 | if (!phy) |
| 249 | return 0; |
| 250 | return -ENOSYS; |
| 251 | } |
| 252 | |
Matt Porter | 8feed34 | 2013-12-19 09:23:02 -0500 | [diff] [blame] | 253 | static inline int phy_get_bus_width(struct phy *phy) |
| 254 | { |
| 255 | return -ENOSYS; |
| 256 | } |
| 257 | |
| 258 | static inline void phy_set_bus_width(struct phy *phy, int bus_width) |
| 259 | { |
| 260 | return; |
| 261 | } |
| 262 | |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 263 | static inline struct phy *phy_get(struct device *dev, const char *string) |
| 264 | { |
| 265 | return ERR_PTR(-ENOSYS); |
| 266 | } |
| 267 | |
Andrew Lunn | 788a4d5 | 2014-02-04 18:33:12 +0100 | [diff] [blame] | 268 | static inline struct phy *phy_optional_get(struct device *dev, |
| 269 | const char *string) |
| 270 | { |
| 271 | return ERR_PTR(-ENOSYS); |
| 272 | } |
| 273 | |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 274 | static inline struct phy *devm_phy_get(struct device *dev, const char *string) |
| 275 | { |
| 276 | return ERR_PTR(-ENOSYS); |
| 277 | } |
| 278 | |
Andrew Lunn | 788a4d5 | 2014-02-04 18:33:12 +0100 | [diff] [blame] | 279 | static inline struct phy *devm_phy_optional_get(struct device *dev, |
| 280 | const char *string) |
| 281 | { |
| 282 | return ERR_PTR(-ENOSYS); |
| 283 | } |
| 284 | |
Kamil Debski | b5d682f | 2014-03-06 12:16:47 +0100 | [diff] [blame] | 285 | static inline struct phy *devm_of_phy_get(struct device *dev, |
| 286 | struct device_node *np, |
| 287 | const char *con_id) |
| 288 | { |
| 289 | return ERR_PTR(-ENOSYS); |
| 290 | } |
| 291 | |
Arun Ramamurthy | 6be109b | 2015-04-22 16:04:11 -0700 | [diff] [blame] | 292 | static inline struct phy *devm_of_phy_get_by_index(struct device *dev, |
| 293 | struct device_node *np, |
| 294 | int index) |
| 295 | { |
| 296 | return ERR_PTR(-ENOSYS); |
| 297 | } |
| 298 | |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 299 | static inline void phy_put(struct phy *phy) |
| 300 | { |
| 301 | } |
| 302 | |
| 303 | static inline void devm_phy_put(struct device *dev, struct phy *phy) |
| 304 | { |
| 305 | } |
| 306 | |
Kamil Debski | 0b3f3b2 | 2014-03-06 12:16:46 +0100 | [diff] [blame] | 307 | static inline struct phy *of_phy_get(struct device_node *np, const char *con_id) |
| 308 | { |
| 309 | return ERR_PTR(-ENOSYS); |
| 310 | } |
| 311 | |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 312 | static inline struct phy *of_phy_simple_xlate(struct device *dev, |
| 313 | struct of_phandle_args *args) |
| 314 | { |
| 315 | return ERR_PTR(-ENOSYS); |
| 316 | } |
| 317 | |
| 318 | static inline struct phy *phy_create(struct device *dev, |
Kishon Vijay Abraham I | f0ed817 | 2014-07-14 15:55:02 +0530 | [diff] [blame] | 319 | struct device_node *node, |
Heikki Krogerus | dbc9863 | 2014-11-19 17:28:21 +0200 | [diff] [blame] | 320 | const struct phy_ops *ops) |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 321 | { |
| 322 | return ERR_PTR(-ENOSYS); |
| 323 | } |
| 324 | |
| 325 | static inline struct phy *devm_phy_create(struct device *dev, |
Kishon Vijay Abraham I | f0ed817 | 2014-07-14 15:55:02 +0530 | [diff] [blame] | 326 | struct device_node *node, |
Heikki Krogerus | dbc9863 | 2014-11-19 17:28:21 +0200 | [diff] [blame] | 327 | const struct phy_ops *ops) |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 328 | { |
| 329 | return ERR_PTR(-ENOSYS); |
| 330 | } |
| 331 | |
| 332 | static inline void phy_destroy(struct phy *phy) |
| 333 | { |
| 334 | } |
| 335 | |
| 336 | static inline void devm_phy_destroy(struct device *dev, struct phy *phy) |
| 337 | { |
| 338 | } |
| 339 | |
| 340 | static inline struct phy_provider *__of_phy_provider_register( |
Thierry Reding | 1140f7c | 2016-04-05 17:17:34 +0200 | [diff] [blame] | 341 | struct device *dev, struct device_node *children, struct module *owner, |
| 342 | struct phy * (*of_xlate)(struct device *dev, |
| 343 | struct of_phandle_args *args)) |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 344 | { |
| 345 | return ERR_PTR(-ENOSYS); |
| 346 | } |
| 347 | |
| 348 | static inline struct phy_provider *__devm_of_phy_provider_register(struct device |
Thierry Reding | 1140f7c | 2016-04-05 17:17:34 +0200 | [diff] [blame] | 349 | *dev, struct device_node *children, struct module *owner, |
| 350 | struct phy * (*of_xlate)(struct device *dev, |
| 351 | struct of_phandle_args *args)) |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 352 | { |
| 353 | return ERR_PTR(-ENOSYS); |
| 354 | } |
| 355 | |
| 356 | static inline void of_phy_provider_unregister(struct phy_provider *phy_provider) |
| 357 | { |
| 358 | } |
| 359 | |
| 360 | static inline void devm_of_phy_provider_unregister(struct device *dev, |
| 361 | struct phy_provider *phy_provider) |
| 362 | { |
| 363 | } |
Heikki Krogerus | b7bc15b | 2014-11-19 17:28:18 +0200 | [diff] [blame] | 364 | static inline int |
| 365 | phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id) |
| 366 | { |
| 367 | return 0; |
| 368 | } |
| 369 | static inline void phy_remove_lookup(struct phy *phy, const char *con_id, |
| 370 | const char *dev_id) { } |
Kishon Vijay Abraham I | ff76496 | 2013-09-27 11:53:25 +0530 | [diff] [blame] | 371 | #endif |
| 372 | |
| 373 | #endif /* __DRIVERS_PHY_H */ |