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)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Aug 2016 01:58:35 +0000 (10:58 +0900)
commit5475e6317525b37241766c2e87731fd152e1150b
tree62e47b8caae41ab60a807d541efec31db82bd046
parentc19dc203e61886b4e61201832adc4da2816c5def
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.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
drivers/extcon/extcon-arizona.c