extcon: palmas: Handle ID interrupt properly using USB_ID_INT_SRC
authorGeorge Cherian <george.cherian@ti.com>
Thu, 10 Oct 2013 18:48:39 +0000 (00:18 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 7 Jan 2014 02:54:27 +0000 (11:54 +0900)
Always cross check with the ID state and the source of interrupt.
Also add a case in which ID Source is ID_GND but LATCH state is set
wrongly. This uses the previous Link stat to determine the new state.

Signed-off-by: George Cherian <george.cherian@ti.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-palmas.c

Simple merge