diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-05-04 00:39:50 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2011-05-04 00:39:50 +0000 |
commit | 0c08e68992d42a8e07cccdcd69fc813a45874caf (patch) | |
tree | 7d92a35b73cef6e339d3dfe1d3635c5843250046 /flash.h | |
parent | 20c9ed251c13ab15014c75a0e313cc6935e4bf55 (diff) | |
download | flashrom-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 'flash.h')
-rw-r--r-- | flash.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -173,7 +173,7 @@ struct flashchip { #define TIMING_IGNORED -1 #define TIMING_ZERO -2 -extern struct flashchip flashchips[]; +extern const struct flashchip flashchips[]; /* print.c */ char *flashbuses_to_text(enum chipbustype bustype); @@ -193,7 +193,7 @@ extern char *chip_to_probe; void map_flash_registers(struct flashchip *flash); int read_memmapped(struct flashchip *flash, uint8_t *buf, int start, int len); int erase_flash(struct flashchip *flash); -struct flashchip *probe_flash(struct flashchip *first_flash, int force); +int probe_flash(int startchip, struct flashchip *fill_flash, int force); int read_flash_to_file(struct flashchip *flash, char *filename); int min(int a, int b); int max(int a, int b); |