UPSTREAM: extcon: adc-jack: Remove the usage of extcon_set_state()
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 18 Jul 2016 07:16:29 +0000 (16:16 +0900)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 3 Aug 2016 02:07:00 +0000 (10:07 +0800)
commiteafd797094e6373190589e8f7b6fbb88a75542f7
treeb3b40297e43eb10cd87858012e357edbfbf86550
parent7e41a07369b681d2348471d8ef91694e03605932
UPSTREAM: extcon: adc-jack: Remove the usage of extcon_set_state()

This patch removes the usage of extcon_set_state() because it uses the bit
masking to change the state of external connectors. The extcon framework
should handle the state by extcon_set/get_cable_state_() with extcon id.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
(cherry picked from commit 0ddde3db610d57d28c1fe9a61e32dff1dc55ea59
 git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon.git extcon-next)

Change-Id: I64d5ff0c054ca0bab9a59105bf5c395d998665ff
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
drivers/extcon/extcon-adc-jack.c
include/linux/extcon/extcon-adc-jack.h