[PATCH 06/42] imx: imx8_cpu: use static for local functions
Peng Fan (OSS)
peng.fan at oss.nxp.com
Fri Apr 28 06:08:11 CEST 2023
From: Peng Fan <peng.fan at nxp.com>
For local functions, use static for function.
Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
drivers/cpu/imx8_cpu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c
index dc060513b38..e7f45e60dbd 100644
--- a/drivers/cpu/imx8_cpu.c
+++ b/drivers/cpu/imx8_cpu.c
@@ -27,7 +27,7 @@ struct cpu_imx_plat {
u32 mpidr;
};
-const char *get_imx8_type(u32 imxtype)
+static const char *get_imx8_type(u32 imxtype)
{
switch (imxtype) {
case MXC_CPU_IMX8QXP:
@@ -40,7 +40,7 @@ const char *get_imx8_type(u32 imxtype)
}
}
-const char *get_imx8_rev(u32 rev)
+static const char *get_imx8_rev(u32 rev)
{
switch (rev) {
case CHIP_REV_A:
@@ -101,7 +101,7 @@ static int cpu_imx_get_temp(struct cpu_imx_plat *plat)
}
#endif
-int cpu_imx_get_desc(const struct udevice *dev, char *buf, int size)
+static int cpu_imx_get_desc(const struct udevice *dev, char *buf, int size)
{
struct cpu_imx_plat *plat = dev_get_plat(dev);
int ret, temp;
--
2.40.0
More information about the U-Boot
mailing list