mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 00:54:22 +00:00
Merge "fix(st-pmic): remove deadcode from STPMIC2 driver" into integration
This commit is contained in:
commit
0b2ea477be
1 changed files with 1 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2024, STMicroelectronics - All Rights Reserved
|
||||
* Copyright (C) 2024-2025, STMicroelectronics - All Rights Reserved
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -247,10 +247,6 @@ int stpmic2_regulator_levels_mv(struct pmic_handle_s *pmic,
|
|||
{
|
||||
const struct regul_struct *regul = ®ul_table[id];
|
||||
|
||||
if (regul == NULL) {
|
||||
return RET_ERROR_BAD_PARAMETERS;
|
||||
}
|
||||
|
||||
if (levels_count != NULL) {
|
||||
*levels_count = regul->volt_table_size;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue