projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e82bf0
)
extcon: sm5502: Fix bug to check cable type
author
Chanwoo Choi
<cw00.choi@samsung.com>
Wed, 30 Jul 2014 06:39:02 +0000
(15:39 +0900)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 22 Sep 2014 02:43:07 +0000
(11:43 +0900)
This patch fix bug when checking cable type. SM5502 have to use ADC value
to get correct cable type.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-sm5502.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/extcon/extcon-sm5502.c
b/drivers/extcon/extcon-sm5502.c
index 560d7dccec7b25a0886d8b8ef696608478b2aa67..a1ba9242e9cba028b05a43d6a96727e0d1d51d3e 100644
(file)
--- a/
drivers/extcon/extcon-sm5502.c
+++ b/
drivers/extcon/extcon-sm5502.c
@@
-300,7
+300,7
@@
static unsigned int sm5502_muic_get_cable_type(struct sm5502_muic_info *info)
* If ADC is SM5502_MUIC_ADC_GROUND(0x0), external cable hasn't
* connected with to MUIC device.
*/
- cable_type
&=
SM5502_REG_ADC_MASK;
+ cable_type
= adc &
SM5502_REG_ADC_MASK;
if (cable_type == SM5502_MUIC_ADC_GROUND)
return SM5502_MUIC_ADC_GROUND;