diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-10-20 11:17:39 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-11-28 20:58:27 (GMT) |
commit | 7edb186fcf96bd52aadf0529aa135bb393732060 (patch) | |
tree | 750eb011a62071d84120f7fadf371aafed0aee5b /include/image.h | |
parent | fc9903f38d53024e28261eb14230bf6fc02d879e (diff) | |
download | u-boot-fsl-qoriq-7edb186fcf96bd52aadf0529aa135bb393732060.tar.xz |
image: constify lookup tables
These are pure lookup tables -- no need to be writable.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/image.h b/include/image.h index 49d6280..005e0d2 100644 --- a/include/image.h +++ b/include/image.h @@ -300,14 +300,14 @@ typedef struct table_entry { * entry that matches the given short name. If a matching entry is * found, it's id is returned to the caller. */ -int get_table_entry_id (table_entry_t *table, +int get_table_entry_id(const table_entry_t *table, const char *table_name, const char *name); /* * get_table_entry_name() scans the translation table trying to find * an entry that matches the given id. If a matching entry is found, * its long name is returned to the caller. */ -char *get_table_entry_name (table_entry_t *table, char *msg, int id); +char *get_table_entry_name(const table_entry_t *table, char *msg, int id); const char *genimg_get_os_name (uint8_t os); const char *genimg_get_arch_name (uint8_t arch); |