UPSTREAM: extcon: Remove the deprecated extcon functions
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 31 May 2016 08:32:30 +0000 (17:32 +0900)
committerGerrit Code Review <gerrit@rock-chips.com>
Wed, 3 Aug 2016 01:37:44 +0000 (09:37 +0800)
commit6c77332be4c0142363b4fd83c5801ba4c18d0088
treed7790840fa7748086b4383b860be915bfe1bd937
parent7e2c926d989e73ca1179f7aff08ab5fb56494cbd
UPSTREAM: extcon: Remove the deprecated extcon functions

This patch removes the deprecated extcon functions using string type
to identify the type of external connector. The Commit 2a9de9c0f08d61
("extcon: Use the unique id for external connector instead of string)
uses the unique id to separate the type of external connector instead of
string name.
- extcon_register_interest()
- extcon_unregister_interest()
- extcon_set_cable_state()
- extcon_get_cable_state()

And, extcon_register_interest() finds the first extcon device to include the
requested external connector from extcon client device and then register the
notifier if extcon device argument is NULL. Instead, extcon_register_notifier()
supports this feature.

But, this patch remains the deprecatd function definition to prevent
the build break.

Change-Id: I8238aa91a6da91fe66cb6c182602bc3bcc8688ae
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
(cherry picked from commit 830ae442202e314c2bdf7cb4c7cc64d76db0e197)
drivers/extcon/extcon.c
include/linux/extcon.h