]> git.baikalelectronics.ru Git - kernel.git/commit
phy: armada375-usb2: Set drvdata for phy and use it
authorAxel Lin <axel.lin@ingics.com>
Wed, 25 Feb 2015 23:24:49 +0000 (07:24 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 4 Mar 2015 13:01:47 +0000 (18:31 +0530)
commit5ffd84b8894e06c07633cc1467ad5085bde5498a
tree38b3159af4ef50d239b7b68fb4dda26d76d4ef1a
parent739c677ab49b290fcbda420827ffd6df45fd9961
phy: armada375-usb2: Set drvdata for phy and use it

At the context we have pointer to struct phy, it's useful to call
phy_get_drvdata() to get the address of cluster_phy. This has slightly
better readability than calling dev_get_drvdata(phy->dev.parent).

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-armada375-usb2.c