From 54271036fb101ba8c3770d45e022885dbc5b827a Mon Sep 17 00:00:00 2001 From: Michael Leonard Date: Mon, 15 Apr 2024 16:15:16 -0500 Subject: [PATCH] PMICDRV-80: Remove initializeLDOCfgReg(ldoConfig) from Pmic_power{Get,Set}LdoConfigRegister API's Calling `initializeLDOCfgReg()` at this point overrides the desired value with the default value from the initialization function. Signed-off-by: Abishek SS Signed-off-by: Michael Leonard --- src/pmic_power.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pmic_power.c b/src/pmic_power.c index 1692c03..833ac4b 100644 --- a/src/pmic_power.c +++ b/src/pmic_power.c @@ -480,7 +480,6 @@ Pmic_powerSetLdoConfigRegister(Pmic_CoreHandle_t * pPmicCoreHandle, pmicStatus = PMIC_ST_ERR_INV_PARAM; break; } - initializeLDOCfgReg(ldoConfig); } } @@ -579,7 +578,6 @@ Pmic_powerGetLdoConfigRegister(Pmic_CoreHandle_t * pPmicCoreHandle, break; } - initializeLDOCfgReg(ldoConfig); } }