summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-10-31 22:22:11 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-10-31 22:22:11 +0000
commit246be7dd6dc732f1bf98f2ad63e2b7d9050aeafe (patch)
treeb566e25b9b89b70a727228a19cea90e83d477e32
parente7537f134d8484f3b8560e00a838bdacce4ea884 (diff)
Use the preferred order of 'static const' instead of 'const static'.
This is the common style in both Linux as well as in LinuxBIOS. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Jordan Crouse <jordan.crouse@amd.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2922 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--util/superiotool/ali.c2
-rw-r--r--util/superiotool/fintek.c2
-rw-r--r--util/superiotool/ite.c2
-rw-r--r--util/superiotool/nsc.c2
-rw-r--r--util/superiotool/smsc.c2
-rw-r--r--util/superiotool/superiotool.c2
-rw-r--r--util/superiotool/superiotool.h2
-rw-r--r--util/superiotool/winbond.c2
8 files changed, 8 insertions, 8 deletions
diff --git a/util/superiotool/ali.c b/util/superiotool/ali.c
index 9331c65c30..e781aba827 100644
--- a/util/superiotool/ali.c
+++ b/util/superiotool/ali.c
@@ -25,7 +25,7 @@
#define DEVICE_REV_REG 0x1f
-const static struct superio_registers reg_table[] = {
+static const struct superio_registers reg_table[] = {
/* TODO: M5113 doesn't seem to have ID registers? */
{0x5315, "M1535/M1535D/M1535+/M1535D+", {
{NOLDN, NULL,
diff --git a/util/superiotool/fintek.c b/util/superiotool/fintek.c
index 461be1821f..ab9b2d5b2b 100644
--- a/util/superiotool/fintek.c
+++ b/util/superiotool/fintek.c
@@ -29,7 +29,7 @@
#define FINTEK_VENDOR_ID 0x3419
-const static struct superio_registers reg_table[] = {
+static const struct superio_registers reg_table[] = {
{0x0106, "F71862FG", {
{EOT}}},
{0x4103, "F71872F/FG / F71806F/FG", { /* Same ID? Datasheet typo? */
diff --git a/util/superiotool/ite.c b/util/superiotool/ite.c
index 060ebf2f45..47bf29fbe8 100644
--- a/util/superiotool/ite.c
+++ b/util/superiotool/ite.c
@@ -26,7 +26,7 @@
#define CHIP_VERSION_REG 0x22
-const static struct superio_registers reg_table[] = {
+static const struct superio_registers reg_table[] = {
{0x8661, "IT8661F", {
/* TODO: Needs different init sequence. */
{NOLDN, NULL,
diff --git a/util/superiotool/nsc.c b/util/superiotool/nsc.c
index 0edf2a0ab5..5cb0ec7fa5 100644
--- a/util/superiotool/nsc.c
+++ b/util/superiotool/nsc.c
@@ -24,7 +24,7 @@
#define CHIP_ID_REG 0x20 /* Super I/O ID (SID) / family */
#define CHIP_REV_REG 0x27 /* Super I/O revision ID (SRID) */
-const static struct superio_registers reg_table[] = {
+static const struct superio_registers reg_table[] = {
{0xd0, "PC87371", { /* From sensors-detect */
{EOT}}},
{0xdf, "PC97371", { /* From sensors-detect */
diff --git a/util/superiotool/smsc.c b/util/superiotool/smsc.c
index f26204dc51..2a5487407d 100644
--- a/util/superiotool/smsc.c
+++ b/util/superiotool/smsc.c
@@ -26,7 +26,7 @@
#define DEVICE_ID_REG 0x20
#define DEVICE_REV_REG 0x21
-const static struct superio_registers reg_table[] = {
+static const struct superio_registers reg_table[] = {
/* The following Super I/Os use the 0x20/0x21 ID registers. */
{0x0e, "LPC47N252", { /* From sensors-detect */
{EOT}}},
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c
index 47561c9ef0..cbff346f52 100644
--- a/util/superiotool/superiotool.c
+++ b/util/superiotool/superiotool.c
@@ -170,7 +170,7 @@ int main(int argc, char *argv[])
{
int i, j, opt, option_index;
- const static struct option long_options[] = {
+ static const struct option long_options[] = {
{"dump", no_argument, NULL, 'd'},
{"verbose", no_argument, NULL, 'V'},
{"version", no_argument, NULL, 'v'},
diff --git a/util/superiotool/superiotool.h b/util/superiotool/superiotool.h
index 38f9cdfc1a..97daed96f4 100644
--- a/util/superiotool/superiotool.h
+++ b/util/superiotool/superiotool.h
@@ -100,7 +100,7 @@ void probe_idregs_smsc(uint16_t port);
void probe_idregs_winbond(uint16_t port);
/** Table of which config ports to probe for each Super I/O family. */
-const static struct {
+static const struct {
void (*probe_idregs) (uint16_t port);
int ports[MAXNUMPORTS]; /* Signed, as we need EOT. */
} superio_ports_table[] = {
diff --git a/util/superiotool/winbond.c b/util/superiotool/winbond.c
index d7a8b9a18f..671a825684 100644
--- a/util/superiotool/winbond.c
+++ b/util/superiotool/winbond.c
@@ -36,7 +36,7 @@
*
* Some other Super I/Os only use bits 3..0 of 0x09 as ID.
*/
-const static struct superio_registers reg_table[] = {
+static const struct superio_registers reg_table[] = {
/* ID and rev[3..0] */
{0x527, "W83977CTF", { /* TODO: Not yet in sensors-detect */
{EOT}}},