]> git.sur5r.net Git - u-boot/commitdiff
x86: cpu: Make the vendor table const
authorSimon Glass <sjg@chromium.org>
Mon, 7 Mar 2016 02:27:57 +0000 (19:27 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 17 Mar 2016 02:27:23 +0000 (10:27 +0800)
This does not need to be modified at run-time, so make it const.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/cpu.c

index 6c3a748f75388538fb61ca548718ddde25ae0c9e..8800e09fa2a35a222ea31db0c9019e3000fd371e 100644 (file)
@@ -71,7 +71,7 @@ struct cpuinfo_x86 {
  * List of cpu vendor strings along with their normalized
  * id values.
  */
-static struct {
+static const struct {
        int vendor;
        const char *name;
 } x86_vendors[] = {