Skip to content

Commit

Permalink
extcon: max8997: Consolidate duplicate code for checking ADC/CHG cabl…
Browse files Browse the repository at this point in the history
…e type

This patch make max8997_muic_get_cable_type() function to remove
duplicate code for checking ADC/Charger cable type because almost
internal function need to read adc/chg_type value of MUIC register.

Also, remove *_detach() function, extcon-max8997 driver treat
attach/detach operation of cable in max8997_*_handler() function.
Lastly, this patch move defined constant in header file(include/
linux/mfd/max8997.h, max8997-private.h) because defined constant
is only used in the 'extcon-max8997.c'.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
  • Loading branch information
Chanwoo Choi committed Feb 13, 2013
1 parent 027fcd5 commit f73f623
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 193 deletions.
Loading

0 comments on commit f73f623

Please sign in to comment.