usb: phy: samsung: Pass enable/disable callbacks through driver data
authorTomasz Figa <t.figa@samsung.com>
Mon, 25 Mar 2013 15:57:32 +0000 (16:57 +0100)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:42:21 +0000 (11:42 +0900)
commit9323b9a61e2234c5d43d25231507bb517279a54c
treeb5289ddd65696e254d7a8a350f513fece9abf023
parentec2c9bf05cf4f49a028569039e2317782e89d069
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>
drivers/usb/phy/phy-samsung-usb.h
drivers/usb/phy/phy-samsung-usb2.c
drivers/usb/phy/phy-samsung-usb3.c