mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
refactor(st): rename PLAT_NB_FIXED_REGS
Rename PLAT_NB_FIXED_REGS to PLAT_NB_FIXED_REGUS. This avoids confusion with regulators and registers. Signed-off-by: Pascal Paillet <p.paillet@st.com> Change-Id: Idb2de7204fe978ffcdd729e6cbe453e85fd089b5
This commit is contained in:
parent
b4939bef12
commit
cff2b1145d
2 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021, STMicroelectronics - All Rights Reserved
|
||||
* Copyright (c) 2021-2023, STMicroelectronics - All Rights Reserved
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
|
@ -13,8 +13,8 @@
|
|||
#include <drivers/st/regulator_fixed.h>
|
||||
#include <libfdt.h>
|
||||
|
||||
#ifndef PLAT_NB_FIXED_REGS
|
||||
#error "Missing PLAT_NB_FIXED_REGS"
|
||||
#ifndef PLAT_NB_FIXED_REGUS
|
||||
#error "Missing PLAT_NB_FIXED_REGUS"
|
||||
#endif
|
||||
|
||||
#define FIXED_NAME_LEN 32
|
||||
|
@ -25,7 +25,7 @@ struct fixed_data {
|
|||
struct regul_description desc;
|
||||
};
|
||||
|
||||
static struct fixed_data data[PLAT_NB_FIXED_REGS];
|
||||
static struct fixed_data data[PLAT_NB_FIXED_REGUS];
|
||||
|
||||
static int fixed_set_state(const struct regul_description *desc, bool state)
|
||||
{
|
||||
|
@ -79,7 +79,7 @@ int fixed_regulator_register(void)
|
|||
}
|
||||
|
||||
count++;
|
||||
assert(count <= PLAT_NB_FIXED_REGS);
|
||||
assert(count <= PLAT_NB_FIXED_REGUS);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -634,7 +634,7 @@ static inline uintptr_t tamp_bkpr(uint32_t idx)
|
|||
/* 3 PWR + 1 VREFBUF + 14 PMIC regulators + 1 FIXED */
|
||||
#define PLAT_NB_RDEVS U(19)
|
||||
/* 2 FIXED */
|
||||
#define PLAT_NB_FIXED_REGS U(2)
|
||||
#define PLAT_NB_FIXED_REGUS U(2)
|
||||
|
||||
/*******************************************************************************
|
||||
* Device Tree defines
|
||||
|
|
Loading…
Add table
Reference in a new issue