diff options
author | Peng Fan <peng.fan@nxp.com> | 2023-04-28 12:08:11 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2023-05-21 16:54:40 +0200 |
commit | 3621efa7cd572719e37007f22fb4d6e5baa5919e (patch) | |
tree | 1bb9b92e14fed7c6afffbf12a91c797f1df63852 /drivers/cpu/imx8_cpu.c | |
parent | f991e98b3bb76058c6163930e43b0032f7829046 (diff) | |
download | u-boot-3621efa7cd572719e37007f22fb4d6e5baa5919e.zip u-boot-3621efa7cd572719e37007f22fb4d6e5baa5919e.tar.gz u-boot-3621efa7cd572719e37007f22fb4d6e5baa5919e.tar.bz2 |
imx: imx8_cpu: use static for local functions
For local functions, use static for function.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/cpu/imx8_cpu.c')
-rw-r--r-- | drivers/cpu/imx8_cpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index dc06051..e7f45e6 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; |