Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

extcon: max8997: Add CHGINS and CHGRM interrupt handling

This allows the MAX8997 charger to set the current limit depending on
the detected extcon charger type.

Signed-off-by: Timon Baetz <timon.baetz@protonmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Timon Baetz and committed by
Chanwoo Choi
17e8ff01 e49d033b

+4
+4
drivers/extcon/extcon-max8997.c
··· 44 44 { MAX8997_MUICIRQ_ChgDetRun, "muic-CHGDETRUN" }, 45 45 { MAX8997_MUICIRQ_ChgTyp, "muic-CHGTYP" }, 46 46 { MAX8997_MUICIRQ_OVP, "muic-OVP" }, 47 + { MAX8997_PMICIRQ_CHGINS, "pmic-CHGINS" }, 48 + { MAX8997_PMICIRQ_CHGRM, "pmic-CHGRM" }, 47 49 }; 48 50 49 51 /* Define supported cable type */ ··· 540 538 case MAX8997_MUICIRQ_DCDTmr: 541 539 case MAX8997_MUICIRQ_ChgDetRun: 542 540 case MAX8997_MUICIRQ_ChgTyp: 541 + case MAX8997_PMICIRQ_CHGINS: 542 + case MAX8997_PMICIRQ_CHGRM: 543 543 /* Handle charger cable */ 544 544 ret = max8997_muic_chg_handler(info); 545 545 break;