Commit 6ffc18cd048a6b4aa8e7f80dd3683cc8f53c7f79
Committed by
Daniel Schwierzeck
1 parent
d7efa94071
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
dm: cpu: bmips: rename cpu_desc specific functions
Use a generic name for cpu_desc functions instead of using a specific SoC one. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff
drivers/cpu/bmips_cpu.c
... | ... | @@ -56,7 +56,7 @@ |
56 | 56 | }; |
57 | 57 | |
58 | 58 | /* Specific CPU Ops */ |
59 | -static int bcm6358_get_cpu_desc(struct bmips_cpu_priv *priv, char *buf, | |
59 | +static int bmips_short_cpu_desc(struct bmips_cpu_priv *priv, char *buf, | |
60 | 60 | int size) |
61 | 61 | { |
62 | 62 | unsigned short cpu_id; |
... | ... | @@ -72,7 +72,7 @@ |
72 | 72 | return 0; |
73 | 73 | } |
74 | 74 | |
75 | -static int bcm6328_get_cpu_desc(struct bmips_cpu_priv *priv, char *buf, | |
75 | +static int bmips_long_cpu_desc(struct bmips_cpu_priv *priv, char *buf, | |
76 | 76 | int size) |
77 | 77 | { |
78 | 78 | unsigned int cpu_id; |
79 | 79 | |
80 | 80 | |
... | ... | @@ -166,19 +166,19 @@ |
166 | 166 | } |
167 | 167 | |
168 | 168 | static const struct bmips_cpu_hw bmips_cpu_bcm6328 = { |
169 | - .get_cpu_desc = bcm6328_get_cpu_desc, | |
169 | + .get_cpu_desc = bmips_long_cpu_desc, | |
170 | 170 | .get_cpu_freq = bcm6328_get_cpu_freq, |
171 | 171 | .get_cpu_count = bcm6328_get_cpu_count, |
172 | 172 | }; |
173 | 173 | |
174 | 174 | static const struct bmips_cpu_hw bmips_cpu_bcm6358 = { |
175 | - .get_cpu_desc = bcm6358_get_cpu_desc, | |
175 | + .get_cpu_desc = bmips_short_cpu_desc, | |
176 | 176 | .get_cpu_freq = bcm6358_get_cpu_freq, |
177 | 177 | .get_cpu_count = bcm6358_get_cpu_count, |
178 | 178 | }; |
179 | 179 | |
180 | 180 | static const struct bmips_cpu_hw bmips_cpu_bcm63268 = { |
181 | - .get_cpu_desc = bcm6328_get_cpu_desc, | |
181 | + .get_cpu_desc = bmips_long_cpu_desc, | |
182 | 182 | .get_cpu_freq = bcm63268_get_cpu_freq, |
183 | 183 | .get_cpu_count = bcm6358_get_cpu_count, |
184 | 184 | }; |