diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2013-06-17 13:19:19 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-17 14:38:53 -0400 |
commit | 39cd206c81f1cc6cc4d3cbafa81734cd3b3c66be (patch) | |
tree | 4069c149d99536303fce720ba18b9f4fd8a25992 /drivers | |
parent | 972da7ec493b16b1d06c27832fad971466859fad (diff) |
ssb: use const for serial flash hardware table
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ssb/driver_chipcommon_sflash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ssb/driver_chipcommon_sflash.c b/drivers/ssb/driver_chipcommon_sflash.c index 720665ca2bb1..1b9e770f5328 100644 --- a/drivers/ssb/driver_chipcommon_sflash.c +++ b/drivers/ssb/driver_chipcommon_sflash.c | |||
@@ -16,7 +16,7 @@ struct ssb_sflash_tbl_e { | |||
16 | u16 numblocks; | 16 | u16 numblocks; |
17 | }; | 17 | }; |
18 | 18 | ||
19 | static struct ssb_sflash_tbl_e ssb_sflash_st_tbl[] = { | 19 | static const struct ssb_sflash_tbl_e ssb_sflash_st_tbl[] = { |
20 | { "M25P20", 0x11, 0x10000, 4, }, | 20 | { "M25P20", 0x11, 0x10000, 4, }, |
21 | { "M25P40", 0x12, 0x10000, 8, }, | 21 | { "M25P40", 0x12, 0x10000, 8, }, |
22 | 22 | ||
@@ -27,7 +27,7 @@ static struct ssb_sflash_tbl_e ssb_sflash_st_tbl[] = { | |||
27 | { 0 }, | 27 | { 0 }, |
28 | }; | 28 | }; |
29 | 29 | ||
30 | static struct ssb_sflash_tbl_e ssb_sflash_sst_tbl[] = { | 30 | static const struct ssb_sflash_tbl_e ssb_sflash_sst_tbl[] = { |
31 | { "SST25WF512", 1, 0x1000, 16, }, | 31 | { "SST25WF512", 1, 0x1000, 16, }, |
32 | { "SST25VF512", 0x48, 0x1000, 16, }, | 32 | { "SST25VF512", 0x48, 0x1000, 16, }, |
33 | { "SST25WF010", 2, 0x1000, 32, }, | 33 | { "SST25WF010", 2, 0x1000, 32, }, |
@@ -45,7 +45,7 @@ static struct ssb_sflash_tbl_e ssb_sflash_sst_tbl[] = { | |||
45 | { 0 }, | 45 | { 0 }, |
46 | }; | 46 | }; |
47 | 47 | ||
48 | static struct ssb_sflash_tbl_e ssb_sflash_at_tbl[] = { | 48 | static const struct ssb_sflash_tbl_e ssb_sflash_at_tbl[] = { |
49 | { "AT45DB011", 0xc, 256, 512, }, | 49 | { "AT45DB011", 0xc, 256, 512, }, |
50 | { "AT45DB021", 0x14, 256, 1024, }, | 50 | { "AT45DB021", 0x14, 256, 1024, }, |
51 | { "AT45DB041", 0x1c, 256, 2048, }, | 51 | { "AT45DB041", 0x1c, 256, 2048, }, |
@@ -73,7 +73,7 @@ static void ssb_sflash_cmd(struct ssb_chipcommon *cc, u32 opcode) | |||
73 | /* Initialize serial flash access */ | 73 | /* Initialize serial flash access */ |
74 | int ssb_sflash_init(struct ssb_chipcommon *cc) | 74 | int ssb_sflash_init(struct ssb_chipcommon *cc) |
75 | { | 75 | { |
76 | struct ssb_sflash_tbl_e *e; | 76 | const struct ssb_sflash_tbl_e *e; |
77 | u32 id, id2; | 77 | u32 id, id2; |
78 | 78 | ||
79 | switch (cc->capabilities & SSB_CHIPCO_CAP_FLASHT) { | 79 | switch (cc->capabilities & SSB_CHIPCO_CAP_FLASHT) { |