diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-07-09 17:20:42 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-07-11 08:13:47 -0400 |
commit | 32575a9183c82a5ea0f9ed1bcf13c17189ea1118 (patch) | |
tree | 5d5c29248a79329188060559a5267f1234407e42 /drivers/i2c | |
parent | 14559f2f9a8b7e5d565c7de34a95097ee331c5cb (diff) |
drivers/i2c: static should be at beginning of declaration
Make sure that the 'static' keywork is at the beginning of declaration
for drivers/i2c/busses/i2c-omap.c
This gets rid of warnings like
warning: ‘static’ is not at beginning of declaration
when building with -Wold-style-declaration (and/or -Wextra which also
enables it).
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 58a58c7eaa17..1a766cf74f6b 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c | |||
@@ -204,7 +204,7 @@ struct omap_i2c_dev { | |||
204 | u16 errata; | 204 | u16 errata; |
205 | }; | 205 | }; |
206 | 206 | ||
207 | const static u8 reg_map[] = { | 207 | static const u8 reg_map[] = { |
208 | [OMAP_I2C_REV_REG] = 0x00, | 208 | [OMAP_I2C_REV_REG] = 0x00, |
209 | [OMAP_I2C_IE_REG] = 0x01, | 209 | [OMAP_I2C_IE_REG] = 0x01, |
210 | [OMAP_I2C_STAT_REG] = 0x02, | 210 | [OMAP_I2C_STAT_REG] = 0x02, |
@@ -225,7 +225,7 @@ const static u8 reg_map[] = { | |||
225 | [OMAP_I2C_BUFSTAT_REG] = 0x10, | 225 | [OMAP_I2C_BUFSTAT_REG] = 0x10, |
226 | }; | 226 | }; |
227 | 227 | ||
228 | const static u8 omap4_reg_map[] = { | 228 | static const u8 omap4_reg_map[] = { |
229 | [OMAP_I2C_REV_REG] = 0x04, | 229 | [OMAP_I2C_REV_REG] = 0x04, |
230 | [OMAP_I2C_IE_REG] = 0x2c, | 230 | [OMAP_I2C_IE_REG] = 0x2c, |
231 | [OMAP_I2C_STAT_REG] = 0x28, | 231 | [OMAP_I2C_STAT_REG] = 0x28, |