mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00
fix(versal2): add const qualifier
This correct the MISRA violation C2012-8.13: A pointer should point to a const-qualified type whenever possible. Added const qualifier to pointer variables and function arguments. Change-Id: I3c1dfa4e5be438df4483a2b5937ee2e7c75e25ab Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
This commit is contained in:
parent
0f9f5575cc
commit
a0745f21aa
1 changed files with 4 additions and 4 deletions
|
@ -269,7 +269,7 @@ size_t plat_scmi_clock_count(unsigned int agent_id)
|
|||
|
||||
const char *plat_scmi_clock_get_name(unsigned int agent_id, unsigned int scmi_id)
|
||||
{
|
||||
struct scmi_clk *clock = clk_find(agent_id, scmi_id);
|
||||
const struct scmi_clk *clock = clk_find(agent_id, scmi_id);
|
||||
const char *ret;
|
||||
|
||||
if (clock == NULL) {
|
||||
|
@ -287,7 +287,7 @@ int32_t plat_scmi_clock_rates_array(unsigned int agent_id, unsigned int scmi_id,
|
|||
unsigned long *array, size_t *nb_elts,
|
||||
uint32_t start_idx)
|
||||
{
|
||||
struct scmi_clk *clock = clk_find(agent_id, scmi_id);
|
||||
const struct scmi_clk *clock = clk_find(agent_id, scmi_id);
|
||||
|
||||
if (clock == NULL) {
|
||||
return SCMI_NOT_FOUND;
|
||||
|
@ -312,7 +312,7 @@ int32_t plat_scmi_clock_rates_array(unsigned int agent_id, unsigned int scmi_id,
|
|||
|
||||
unsigned long plat_scmi_clock_get_rate(unsigned int agent_id, unsigned int scmi_id)
|
||||
{
|
||||
struct scmi_clk *clock = clk_find(agent_id, scmi_id);
|
||||
const struct scmi_clk *clock = clk_find(agent_id, scmi_id);
|
||||
unsigned long ret;
|
||||
|
||||
if ((clock == NULL)) {
|
||||
|
@ -341,7 +341,7 @@ int32_t plat_scmi_clock_set_rate(unsigned int agent_id, unsigned int scmi_id,
|
|||
|
||||
int32_t plat_scmi_clock_get_state(unsigned int agent_id, unsigned int scmi_id)
|
||||
{
|
||||
struct scmi_clk *clock = clk_find(agent_id, scmi_id);
|
||||
const struct scmi_clk *clock = clk_find(agent_id, scmi_id);
|
||||
int32_t ret;
|
||||
|
||||
if ((clock == NULL)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue