path: root/flash.h
diff options
authorNico Huber <>2012-12-30 01:23:17 +0000
committerStefan Tauner <>2012-12-30 01:23:17 +0000
commitbcb2e5a7080cbe0ff21c8ffa5f77b5ba1ea0c472 (patch)
treea20f41f2259da0fb66c67af221ff3e9ab00015e3 /flash.h
parent6282966cc04525828b96273f373e3b105632776b (diff)
Constify parameters and globals
This makes some stuff const (partially to get a more convenient libflashrom interface). Corresponding to flashrom svn r1639. Signed-off-by: Nico Huber <> Signed-off-by: Stefan Tauner <> Acked-by: Stefan Tauner <>
Diffstat (limited to 'flash.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/flash.h b/flash.h
index 76c6942..3149b4f 100644
--- a/flash.h
+++ b/flash.h
@@ -222,7 +222,7 @@ void print_supported_wiki(void);
extern int verbose_screen;
extern int verbose_logfile;
extern const char flashrom_version[];
-extern char *chip_to_probe;
+extern const char *chip_to_probe;
void map_flash_registers(struct flashctx *flash);
int read_memmapped(struct flashctx *flash, uint8_t *buf, unsigned int start, unsigned int len);
int erase_flash(struct flashctx *flash);
@@ -231,7 +231,7 @@ int read_flash_to_file(struct flashctx *flash, const char *filename);
int min(int a, int b);
int max(int a, int b);
void tolower_string(char *str);
-char *extract_param(char **haystack, const char *needle, const char *delim);
+char *extract_param(const char *const *haystack, const char *needle, const char *delim);
int verify_range(struct flashctx *flash, uint8_t *cmpbuf, unsigned int start, unsigned int len);
int need_erase(uint8_t *have, uint8_t *want, unsigned int len, enum write_granularity gran);
char *strcat_realloc(char *dest, const char *src);
OpenPOWER on IntegriCloud