usb: phy: Pass OTG FSM pointer to callback functions
authorAnton Tikhomirov <av.tikhomirov@samsung.com>
Thu, 3 Oct 2013 03:42:04 +0000 (12:42 +0900)
committerNitin Garg <nitin.garg@freescale.com>
Wed, 16 Apr 2014 16:02:22 +0000 (11:02 -0500)
commita6db42388d75bf2fabaf863e09e56b491955477f
treeef5cd0689b28c432b17cfdd8f8ead716862f349b
parent4f2bdf4a0a0bb661ea2b16a3eec3a7c56b8a0d64
usb: phy: Pass OTG FSM pointer to callback functions

struct otg_fsm may be embedded to device's context structure.
The callbacks may require pointer to struct otg_fsm to obtain
necessary data for its operation (example: regulator reference
for drv_vbus()).

Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
(cherry-picked from commit da8cc16724da2965c94ca15e1377cb9939776dda)
drivers/usb/phy/phy-fsl-usb.c
drivers/usb/phy/phy-fsl-usb.h
drivers/usb/phy/phy-fsm-usb.h