Skip to content

Commit 305183f

Browse files
tklauserJean Delvare
authored andcommitted
i2c: Storage class should be before const qualifier
The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Jean Delvare <khali@linux-fr.org>
1 parent a92b36e commit 305183f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/i2c/busses/i2c-pmcmsp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ struct pmcmsptwi_data {
122122
};
123123

124124
/* The default settings */
125-
const static struct pmcmsptwi_clockcfg pmcmsptwi_defclockcfg = {
125+
static const struct pmcmsptwi_clockcfg pmcmsptwi_defclockcfg = {
126126
.standard = {
127127
.filter = 0x3,
128128
.clock = 0x1f,
@@ -133,7 +133,7 @@ const static struct pmcmsptwi_clockcfg pmcmsptwi_defclockcfg = {
133133
},
134134
};
135135

136-
const static struct pmcmsptwi_cfg pmcmsptwi_defcfg = {
136+
static const struct pmcmsptwi_cfg pmcmsptwi_defcfg = {
137137
.arbf = 0x03,
138138
.nak = 0x03,
139139
.add10 = 0x00,

‎include/linux/i2c.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ I2C_CLIENT_MODULE_PARM(probe, "List of adapter,address pairs to scan " \
598598
"additionally"); \
599599
I2C_CLIENT_MODULE_PARM(ignore, "List of adapter,address pairs not to " \
600600
"scan"); \
601-
const static struct i2c_client_address_data addr_data = { \
601+
static const struct i2c_client_address_data addr_data = { \
602602
.normal_i2c = normal_i2c, \
603603
.probe = probe, \
604604
.ignore = ignore, \

0 commit comments

Comments
 (0)