diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2008-03-29 01:35:21 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2008-03-29 01:35:21 +0000 |
commit | 42cccdf03b17a7085099386edb41d8fd9092a170 (patch) | |
tree | 59cad0e1f94a3fcc23c4292b878e49d6e7731784 /util/superiotool/superiotool.h | |
parent | da0efc4ca5cd880745028abac97589b9afc1d034 (diff) |
Make a few array entries only as big as they absolutely need to be (trivial).
This decreases the size of the superiotool binary from ca. 1.1 MB to 600 KB.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3194 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/superiotool.h')
-rw-r--r-- | util/superiotool/superiotool.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/util/superiotool/superiotool.h b/util/superiotool/superiotool.h index 26851484c1..bbab1fb67f 100644 --- a/util/superiotool/superiotool.h +++ b/util/superiotool/superiotool.h @@ -51,7 +51,6 @@ and print its vendor, name, ID, revision, and config port.\n" #define NANA -3 /* Not Available */ #define RSVD -4 /* Reserved */ #define MISC -5 /* Needs special comment in output */ -#define MAXNAMELEN 30 /* Maximum Name Length */ #define MAXLDN 0x10 /* Biggest LDN */ #define LDNSIZE (MAXLDN + 3) /* Biggest LDN + 0 + NOLDN + EOT */ #define MAXNUMIDX 70 /* Maximum number of indexes */ @@ -65,12 +64,12 @@ extern int chip_found; struct superio_registers { int32_t superio_id; /* Signed, as we need EOT. */ - const char name[MAXNAMELEN]; /* Super I/O name */ + const char *name; /* Super I/O name */ struct { - int ldn; + int8_t ldn; const char *name; /* LDN name */ - int idx[IDXSIZE]; - int def[IDXSIZE]; + int16_t idx[IDXSIZE]; + int16_t def[IDXSIZE]; } ldn[LDNSIZE]; }; |