phy: safer to_phy() macro
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 19 Nov 2014 15:28:17 +0000 (17:28 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 21 Nov 2014 14:18:50 +0000 (19:48 +0530)
commitd451057464a7ea2fe400e56c8a7e004c875f2a84
tree55f0183803f2c64afc06bf69efd5430378bc8934
parent2f3fa3a0e5672f87f5b972910737a2ef60941b62
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>
include/linux/phy/phy.h