ath79: add readonly attribute for ath79_soc_desc
authorWills Wang <wills.wang@live.com>
Tue, 12 Apr 2016 10:24:10 +0000 (18:24 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 20 May 2016 23:36:38 +0000 (01:36 +0200)
use 'const' keywork to qualify readonly attribute for lookup-table member

Signed-off-by: Wills Wang <wills.wang@live.com>
arch/mips/mach-ath79/cpu.c

index c6122f2bccb098a76c64331be5d7e2823044e7f3..5756a06d5082de35c4faa6f47c1fa15539b1f5f3 100644 (file)
 #include <mach/ar71xx_regs.h>
 
 struct ath79_soc_desc {
-       enum ath79_soc_type soc;
+       const enum ath79_soc_type soc;
        const char *chip;
-       int major;
-       int minor;
+       const int major;
+       const int minor;
 };
 
-static struct ath79_soc_desc desc[] = {
+static const struct ath79_soc_desc desc[] = {
        {ATH79_SOC_AR7130,      "7130",
         REV_ID_MAJOR_AR71XX,   AR71XX_REV_ID_MINOR_AR7130},
        {ATH79_SOC_AR7141,      "7141",