mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-11 07:04:22 +00:00
fix(psci): add const qualifier
This corrects the MISRA violation C2012-8.13: A pointer should point to a const-qualified type whenever possible. Added const qualifier to pointer in the function arguments. Change-Id: Id3d4aa528f275973a37c0b9af04495632cb2dda3 Signed-off-by: Nithin G <nithing@amd.com> Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
This commit is contained in:
parent
54c9c68a49
commit
7b970841ad
1 changed files with 3 additions and 2 deletions
|
@ -546,7 +546,7 @@ void psci_do_state_coordination(unsigned int cpu_idx, unsigned int end_pwrlvl,
|
|||
unsigned int lvl, parent_idx;
|
||||
unsigned int start_idx;
|
||||
unsigned int ncpus;
|
||||
plat_local_state_t target_state, *req_states;
|
||||
plat_local_state_t target_state;
|
||||
|
||||
assert(end_pwrlvl <= PLAT_MAX_PWR_LVL);
|
||||
parent_idx = psci_cpu_pd_nodes[cpu_idx].parent_node;
|
||||
|
@ -561,7 +561,8 @@ void psci_do_state_coordination(unsigned int cpu_idx, unsigned int end_pwrlvl,
|
|||
|
||||
/* Get the requested power states for this power level */
|
||||
start_idx = psci_non_cpu_pd_nodes[parent_idx].cpu_start_idx;
|
||||
req_states = psci_get_req_local_pwr_states(lvl, start_idx);
|
||||
plat_local_state_t const *req_states = psci_get_req_local_pwr_states(lvl,
|
||||
start_idx);
|
||||
|
||||
/*
|
||||
* Let the platform coordinate amongst the requested states at
|
||||
|
|
Loading…
Add table
Reference in a new issue