Skip to content

Commit

Permalink
PMICDRV-80: Remove initializeLDOCfgReg(ldoConfig) from Pmic_power{Get…
Browse files Browse the repository at this point in the history
…,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 <[email protected]>
Signed-off-by: Michael Leonard <[email protected]>
  • Loading branch information
LeonardMH committed Apr 15, 2024
1 parent 1edfc47 commit 5427103
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/pmic_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ Pmic_powerSetLdoConfigRegister(Pmic_CoreHandle_t * pPmicCoreHandle,
pmicStatus = PMIC_ST_ERR_INV_PARAM;
break;
}
initializeLDOCfgReg(ldoConfig);
}
}

Expand Down Expand Up @@ -579,7 +578,6 @@ Pmic_powerGetLdoConfigRegister(Pmic_CoreHandle_t * pPmicCoreHandle,
break;
}

initializeLDOCfgReg(ldoConfig);
}
}

Expand Down

0 comments on commit 5427103

Please sign in to comment.