diff options
author | Marek Vasut | 2024-02-27 17:05:46 +0100 |
---|---|---|
committer | Tom Rini | 2024-03-02 14:29:36 -0500 |
commit | ca40ed6d7f65b15c33f7cbc6b73f13a34fcfe487 (patch) | |
tree | 9df18452f3da830ecb63cade0a0926cc688d1bfb /arch/arm/mach-rmobile/cpu_info.c | |
parent | 6bd3a95b674cb22a14868778fe2cb61b3e5a9008 (diff) |
ARM: renesas: Rename rmobile_get_cpu_rev_*() to renesas_get_cpu_rev_*()
Rename rmobile_get_cpu_rev_*() to renesas_get_cpu_rev_*() because
all the chips are made by Renesas, while only a subset of them is
from the R-Mobile line.
Use the following command to perform the rename:
"
$ git grep -l '\<rmobile_get_cpu_rev_\(integer\|fraction\)\>' | \
xargs -I {} sed -i 's@\<rmobile_get_cpu_rev_\(integer\|fraction\)\>@renesas_get_cpu_rev_\1@g' {}
"
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Diffstat (limited to 'arch/arm/mach-rmobile/cpu_info.c')
-rw-r--r-- | arch/arm/mach-rmobile/cpu_info.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-rmobile/cpu_info.c b/arch/arm/mach-rmobile/cpu_info.c index c7fbf39cedb..35cfef2e1ab 100644 --- a/arch/arm/mach-rmobile/cpu_info.c +++ b/arch/arm/mach-rmobile/cpu_info.c @@ -47,14 +47,14 @@ static u32 __rmobile_get_cpu_rev_integer(void) { return 0; } -u32 rmobile_get_cpu_rev_integer(void) +u32 renesas_get_cpu_rev_integer(void) __attribute__((weak, alias("__rmobile_get_cpu_rev_integer"))); static u32 __rmobile_get_cpu_rev_fraction(void) { return 0; } -u32 rmobile_get_cpu_rev_fraction(void) +u32 renesas_get_cpu_rev_fraction(void) __attribute__((weak, alias("__rmobile_get_cpu_rev_fraction"))); /* CPU information table */ @@ -122,15 +122,15 @@ int print_cpuinfo(void) int i = rmobile_cpuinfo_idx(); if (rmobile_cpuinfo[i].cpu_type == RMOBILE_CPU_TYPE_R8A7796 && - rmobile_get_cpu_rev_integer() == 1 && - rmobile_get_cpu_rev_fraction() == 1) { + renesas_get_cpu_rev_integer() == 1 && + renesas_get_cpu_rev_fraction() == 1) { printf("CPU: Renesas Electronics %s rev 1.1/1.2\n", get_cpu_name(i)); return 0; } printf("CPU: Renesas Electronics %s rev %d.%d\n", - get_cpu_name(i), rmobile_get_cpu_rev_integer(), - rmobile_get_cpu_rev_fraction()); + get_cpu_name(i), renesas_get_cpu_rev_integer(), + renesas_get_cpu_rev_fraction()); return 0; } |