]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e1a3d9ea80f2a5d8fb861a9ac72a158707e102d
tree20c7257c35ace183471cb85a520cb5ad8459c18f
parent766cfc378578c11e9060a134a04a8c32313e448d
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