UPSTREAM: extcon: arizona: Remove the usage of extcon_update_state()
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 30 Jun 2016 17:36:49 +0000 (02:36 +0900)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 3 Aug 2016 02:06:56 +0000 (10:06 +0800)
commit8d3725ca479adaae476adb246fea6df99bd23e29
tree0d9d4c2e161ef1840b8800cc20589e7825e68bda
parent33fc33a7af7ed17b50a29827535b7f6f01c2e2b0
UPSTREAM: extcon: arizona: Remove the usage of extcon_update_state()

This patch remvoes the usage of extcon_update_state() because
the extcon_update_state() use directly the bit masking calculation
to change the state of external connector without the unique id of
external connector. It makes the code diffcult to read it.
So, this patch uses the extcon_set_cable_state_() instead.

Change-Id: I807cce6c46e37b32d5fbdbf65c45d1ddf6587996
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
(cherry picked from commit af67ea70da0e8e906a81ae00d742c82ecda63a27)
drivers/extcon/extcon-arizona.c