diff options
| author | Wills Wang <wills.wang@live.com> | 2016-04-12 18:24:10 +0800 | 
|---|---|---|
| committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2016-05-21 01:36:38 +0200 | 
| commit | 59e4080c7e4d85bd29c343ea9167794feceadc3e (patch) | |
| tree | 053ad71a0bef93e30326d48ffbab75e16a233c0f /arch/mips/mach-ath79/cpu.c | |
| parent | 5691d10a0166d5a324f96d98757f206c6dedc989 (diff) | |
ath79: add readonly attribute for ath79_soc_desc
use 'const' keywork to qualify readonly attribute for lookup-table member
Signed-off-by: Wills Wang <wills.wang@live.com>
Diffstat (limited to 'arch/mips/mach-ath79/cpu.c')
| -rw-r--r-- | arch/mips/mach-ath79/cpu.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/arch/mips/mach-ath79/cpu.c b/arch/mips/mach-ath79/cpu.c index c6122f2bccb..5756a06d508 100644 --- a/arch/mips/mach-ath79/cpu.c +++ b/arch/mips/mach-ath79/cpu.c @@ -12,13 +12,13 @@  #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", | 
