From 4c82318e4ac57b6da384700fb9d454535b62b3ae Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Wed, 4 May 2011 00:39:50 +0000 Subject: 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 Acked-by: Stefan Reinauer --- flash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flash.h') diff --git a/flash.h b/flash.h index 91c4cf3a..f75d8bbf 100644 --- a/flash.h +++ b/flash.h @@ -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); -- cgit v1.2.3