mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 10:04:26 +00:00
Merge "refactor(st-pmic): use LOG_LEVEL for regulator debug output" into integration
This commit is contained in:
commit
314aa18a79
3 changed files with 2 additions and 6 deletions
|
@ -493,7 +493,5 @@ void initialize_pmic(void)
|
|||
panic();
|
||||
}
|
||||
|
||||
#if EVENT_LOG_LEVEL == LOG_LEVEL_VERBOSE
|
||||
stpmic2_dump_regulators(pmic2);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -434,9 +434,9 @@ int stpmic2_regulator_set_prop(struct pmic_handle_s *pmic, uint8_t id,
|
|||
return -EPERM;
|
||||
}
|
||||
|
||||
#if EVENT_LOG_LEVEL == LOG_LEVEL_VERBOSE
|
||||
void stpmic2_dump_regulators(struct pmic_handle_s *pmic)
|
||||
{
|
||||
#if LOG_LEVEL >= LOG_LEVEL_VERBOSE
|
||||
size_t i;
|
||||
char const *name;
|
||||
|
||||
|
@ -456,8 +456,8 @@ void stpmic2_dump_regulators(struct pmic_handle_s *pmic)
|
|||
VERBOSE("PMIC regul %s: %s, %dmV\n",
|
||||
name, state ? "EN" : "DIS", val);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
int stpmic2_get_version(struct pmic_handle_s *pmic, uint8_t *val)
|
||||
{
|
||||
|
|
|
@ -346,9 +346,7 @@ int stpmic2_regulator_get_voltage(struct pmic_handle_s *pmic,
|
|||
int stpmic2_regulator_set_voltage(struct pmic_handle_s *pmic,
|
||||
uint8_t id, uint16_t millivolts);
|
||||
|
||||
#if EVENT_LOG_LEVEL == LOG_LEVEL_VERBOSE
|
||||
void stpmic2_dump_regulators(struct pmic_handle_s *pmic);
|
||||
#endif
|
||||
|
||||
int stpmic2_get_version(struct pmic_handle_s *pmic, uint8_t *val);
|
||||
int stpmic2_get_product_id(struct pmic_handle_s *pmic, uint8_t *val);
|
||||
|
|
Loading…
Add table
Reference in a new issue