diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2014-11-19 16:28:17 +0100 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2014-11-21 15:18:50 +0100 |
commit | d451057464a7ea2fe400e56c8a7e004c875f2a84 (patch) | |
tree | 55f0183803f2c64afc06bf69efd5430378bc8934 /include | |
parent | Documentation: bindings: add doc for the Berlin USB PHY (diff) | |
download | linux-d451057464a7ea2fe400e56c8a7e004c875f2a84.tar.xz linux-d451057464a7ea2fe400e56c8a7e004c875f2a84.zip |
phy: safer to_phy() macro
This makes to_phy() macro work with other variable names
besides "dev".
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Tested-by: Vivek Gautam <gautam.vivek@samsung.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phy/phy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index 8cb6f815475b..9fda68324298 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -110,7 +110,7 @@ struct phy_init_data { .port = _port, \ } -#define to_phy(dev) (container_of((dev), struct phy, dev)) +#define to_phy(a) (container_of((a), struct phy, dev)) #define of_phy_provider_register(dev, xlate) \ __of_phy_provider_register((dev), THIS_MODULE, (xlate)) |