From: Wills Wang Date: Tue, 12 Apr 2016 10:24:10 +0000 (+0800) Subject: ath79: add readonly attribute for ath79_soc_desc X-Git-Tag: KARO-TXSD-2017-03-15~1017^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=59e4080c7e4d85bd29c343ea9167794feceadc3e;p=karo-tx-uboot.git ath79: add readonly attribute for ath79_soc_desc use 'const' keywork to qualify readonly attribute for lookup-table member Signed-off-by: Wills Wang --- diff --git a/arch/mips/mach-ath79/cpu.c b/arch/mips/mach-ath79/cpu.c index c6122f2bcc..5756a06d50 100644 --- a/arch/mips/mach-ath79/cpu.c +++ b/arch/mips/mach-ath79/cpu.c @@ -12,13 +12,13 @@ #include 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",