extcon: max77693: Fix a bug occured at changing ADC debounce time.
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Tue, 18 Mar 2014 15:55:10 +0000 (00:55 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:13 +0000 (11:47 +0900)
commit38ad7022ccf98dc34eadfc086e3b2a120d934b60
treed55b7cae8c01fc69bdab873c559fda3c787134cb
parentb7492d142e235af56d92c6efdefadcdd5365b27a
extcon: max77693: Fix a bug occured at changing ADC debounce time.

During the initialzation of max77693 muic device, it has been suffered from
abnormal interrupt and accidental reset of certain register when it changes
ADC debounce time. All these happens occured by mistakenly writing some value
to BLTDset and JIGset from CONTROL3 register.
BLTDset and JIGset are not configurable and only reflect actual pin status.
If you write some value other than 0 to them, muic device will return false
information.

To set ADC debounce time properly, give 0 to BLTDset and JIGset when writing
CONTORL3 register.

Previous workaround patches are now purged.

Change-Id: If87e01785115d460b1153e24271a50125d1631fb
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
drivers/extcon/extcon-max77693.c