]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
extcon: max77693: Remove duplicate code by making function
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 27 Nov 2012 00:40:32 +0000 (09:40 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 15 Jan 2013 06:42:14 +0000 (15:42 +0900)
commit154f757fd315270e42bd17f4a68d84bd070e5758
treec7b107c638428d0d959672fe00be356f1cdff8ed
parent9931faca02c604c22335f5a935a501bb2ace6e20
extcon: max77693: Remove duplicate code by making function

This patch make max77693-muic_get_cable_type() function to remove
duplicate code because almost internal function need to read
adc/adc1k/adclow/chg_type value of MUIC register. Also, this patch
add description of internal function move field constant of muic device
from extcon-max77693 driver to max77693 header file because of it
is needed for masking some interrupt through platform data.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
drivers/extcon/extcon-max77693.c
include/linux/mfd/max77693-private.h