usb: phy: samsung: Pass enable/disable callbacks through driver data
authorTomasz Figa <t.figa@samsung.com>
Thu, 16 May 2013 09:57:10 +0000 (11:57 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 17:07:15 +0000 (20:07 +0300)
commit84035f09adf81c2554bb39ff100651f167f7d384
tree20c7257c35ace183471cb85a520cb5ad8459c18f
parent3f339074edfa0d531edaa6bd095f718e58b50a7d
usb: phy: samsung: Pass enable/disable callbacks through driver data

To remove unnecessary if statements, this patch introduces phy_enable
and phy_disable callbacks in driver data structure that implement
SoC-specific PHY initialization and deinitialization.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-samsung-usb.h
drivers/usb/phy/phy-samsung-usb2.c
drivers/usb/phy/phy-samsung-usb3.c