usb: phy: tahvo: Use devm_extcon_dev_[allocate|register]() and replace deprecated API
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 1 Jul 2015 04:11:32 +0000 (13:11 +0900)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Jul 2015 14:59:18 +0000 (09:59 -0500)
commit860d2686fda7e4dceaa4e676e62adcdbfc7f7a2c
treec7acb246ddfb6d0650ea40903e5c6b900d191d67
parenta2fd2423240fe1abd7a154a1cc0fd1624c339bff
usb: phy: tahvo: Use devm_extcon_dev_[allocate|register]() and replace deprecated API

This patch uses the devm_extcon_dev_[allocate|register]() to manage the
resource automatically and replace deprecated API as following:
- extcon_[set|get]_cable_state(*edev, char *) -> extcon_[set|get]_cable_state_(*edev, id)

Cc: Felipe Balbi <balbi@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-tahvo.c