extcon: sm5502: Detect OTG when USB_ID is connected to ground
authorNikita Travkin <nikitos.tr@gmail.com>
Tue, 19 Jan 2021 13:33:47 +0000 (18:33 +0500)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 8 Apr 2021 04:10:16 +0000 (13:10 +0900)
commite3f60329097be9e6c314de36c8dd0c7c5c2c0c7b
tree9d1d87512bffcb00b24494ee80ecc22cc2900937
parent17e8ff013e3e82a66d239777d113b2aaa97a77d4
extcon: sm5502: Detect OTG when USB_ID is connected to ground

In it's curent state this driver ignores OTG adapters with ID pin
connected to ground. This commit adds a check to set extcon into
host mode when such OTG adapter is connected.

Signed-off-by: Nikita Travkin <nikitos.tr@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-sm5502.c