summaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-05-04 00:39:50 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2011-05-04 00:39:50 +0000
commit0c08e68992d42a8e07cccdcd69fc813a45874caf (patch)
tree7d92a35b73cef6e339d3dfe1d3635c5843250046 /print.c
parent20c9ed251c13ab15014c75a0e313cc6935e4bf55 (diff)
downloadflashrom-0c08e68992d42a8e07cccdcd69fc813a45874caf.zip
flashrom-0c08e68992d42a8e07cccdcd69fc813a45874caf.tar.gz
Constify flashchips array
This moves 99.5% of the .data section to .rodata (which ends up in .text). Corresponding to flashrom svn r1293. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'print.c')
-rw-r--r--print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print.c b/print.c
index c839e38..8d3c004 100644
--- a/print.c
+++ b/print.c
@@ -78,7 +78,7 @@ static void print_supported_chips(void)
{
int okcol = 0, pos = 0, i, chipcount = 0;
int maxchiplen = 0, maxvendorlen = 0;
- struct flashchip *f;
+ const struct flashchip *f;
for (f = flashchips; f->name != NULL; f++) {
/* Ignore "unknown XXXX SPI chip" entries. */
OpenPOWER on IntegriCloud