diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2013-06-17 13:19:20 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-17 14:38:53 -0400 |
commit | 4a71053ec5b5f5bf58963b94429d7af920b88ef9 (patch) | |
tree | e12a25da1bb772cedf553e1d77f68d351c76e24c /drivers/bcma | |
parent | 39cd206c81f1cc6cc4d3cbafa81734cd3b3c66be (diff) |
bcma: 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/bcma')
-rw-r--r-- | drivers/bcma/driver_chipcommon_sflash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/bcma/driver_chipcommon_sflash.c b/drivers/bcma/driver_chipcommon_sflash.c index e6ed4fe5dced..4d07cce9c5d9 100644 --- a/drivers/bcma/driver_chipcommon_sflash.c +++ b/drivers/bcma/driver_chipcommon_sflash.c | |||
@@ -30,7 +30,7 @@ struct bcma_sflash_tbl_e { | |||
30 | u16 numblocks; | 30 | u16 numblocks; |
31 | }; | 31 | }; |
32 | 32 | ||
33 | static struct bcma_sflash_tbl_e bcma_sflash_st_tbl[] = { | 33 | static const struct bcma_sflash_tbl_e bcma_sflash_st_tbl[] = { |
34 | { "M25P20", 0x11, 0x10000, 4, }, | 34 | { "M25P20", 0x11, 0x10000, 4, }, |
35 | { "M25P40", 0x12, 0x10000, 8, }, | 35 | { "M25P40", 0x12, 0x10000, 8, }, |
36 | 36 | ||
@@ -41,7 +41,7 @@ static struct bcma_sflash_tbl_e bcma_sflash_st_tbl[] = { | |||
41 | { 0 }, | 41 | { 0 }, |
42 | }; | 42 | }; |
43 | 43 | ||
44 | static struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = { | 44 | static const struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = { |
45 | { "SST25WF512", 1, 0x1000, 16, }, | 45 | { "SST25WF512", 1, 0x1000, 16, }, |
46 | { "SST25VF512", 0x48, 0x1000, 16, }, | 46 | { "SST25VF512", 0x48, 0x1000, 16, }, |
47 | { "SST25WF010", 2, 0x1000, 32, }, | 47 | { "SST25WF010", 2, 0x1000, 32, }, |
@@ -59,7 +59,7 @@ static struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = { | |||
59 | { 0 }, | 59 | { 0 }, |
60 | }; | 60 | }; |
61 | 61 | ||
62 | static struct bcma_sflash_tbl_e bcma_sflash_at_tbl[] = { | 62 | static const struct bcma_sflash_tbl_e bcma_sflash_at_tbl[] = { |
63 | { "AT45DB011", 0xc, 256, 512, }, | 63 | { "AT45DB011", 0xc, 256, 512, }, |
64 | { "AT45DB021", 0x14, 256, 1024, }, | 64 | { "AT45DB021", 0x14, 256, 1024, }, |
65 | { "AT45DB041", 0x1c, 256, 2048, }, | 65 | { "AT45DB041", 0x1c, 256, 2048, }, |
@@ -89,7 +89,7 @@ int bcma_sflash_init(struct bcma_drv_cc *cc) | |||
89 | { | 89 | { |
90 | struct bcma_bus *bus = cc->core->bus; | 90 | struct bcma_bus *bus = cc->core->bus; |
91 | struct bcma_sflash *sflash = &cc->sflash; | 91 | struct bcma_sflash *sflash = &cc->sflash; |
92 | struct bcma_sflash_tbl_e *e; | 92 | const struct bcma_sflash_tbl_e *e; |
93 | u32 id, id2; | 93 | u32 id, id2; |
94 | 94 | ||
95 | switch (cc->capabilities & BCMA_CC_CAP_FLASHT) { | 95 | switch (cc->capabilities & BCMA_CC_CAP_FLASHT) { |