]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: msm-usb: Replace deprecated API of extcon
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 1 Jul 2015 04:11:34 +0000 (13:11 +0900)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Jul 2015 14:59:18 +0000 (09:59 -0500)
commit6c878cb837be412134c24f5c27f40d95c660e48d
treeeed6f3322cd9028693ada3761d8f8804fbc79ac8
parentc8ddf326e5ed5fef31ad550c65e3372bc9e480af
usb: phy: msm-usb: Replace deprecated API of extcon

This patch removes the deprecated notifier API of extcon framwork
and then use the new extcon API with the unique id to indicate
the each external connector (USB, USB-HOST).

Alter deprecated API as following:
- extcon_register_interest() -> extcon_register_notifier()
- extcon_get_cable_state(*edev, char *) -> extcon_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-msm-usb.c
include/linux/usb/msm_hsusb.h