Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 305183fc authored by Tobias Klauser's avatar Tobias Klauser Committed by Jean Delvare
Browse files

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: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent a92b36ed
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -122,7 +122,7 @@ struct pmcmsptwi_data {
};
};


/* The default settings */
/* The default settings */
const static struct pmcmsptwi_clockcfg pmcmsptwi_defclockcfg = {
static const struct pmcmsptwi_clockcfg pmcmsptwi_defclockcfg = {
	.standard = {
	.standard = {
		.filter	= 0x3,
		.filter	= 0x3,
		.clock	= 0x1f,
		.clock	= 0x1f,
@@ -133,7 +133,7 @@ const static struct pmcmsptwi_clockcfg pmcmsptwi_defclockcfg = {
	},
	},
};
};


const static struct pmcmsptwi_cfg pmcmsptwi_defcfg = {
static const struct pmcmsptwi_cfg pmcmsptwi_defcfg = {
	.arbf		= 0x03,
	.arbf		= 0x03,
	.nak		= 0x03,
	.nak		= 0x03,
	.add10		= 0x00,
	.add10		= 0x00,
+1 −1
Original line number Original line Diff line number Diff line
@@ -598,7 +598,7 @@ I2C_CLIENT_MODULE_PARM(probe, "List of adapter,address pairs to scan " \
		       "additionally");					\
		       "additionally");					\
I2C_CLIENT_MODULE_PARM(ignore, "List of adapter,address pairs not to "	\
I2C_CLIENT_MODULE_PARM(ignore, "List of adapter,address pairs not to "	\
		       "scan");						\
		       "scan");						\
const static struct i2c_client_address_data addr_data = {		\
static const struct i2c_client_address_data addr_data = {		\
	.normal_i2c	= normal_i2c,					\
	.normal_i2c	= normal_i2c,					\
	.probe		= probe,					\
	.probe		= probe,					\
	.ignore		= ignore,					\
	.ignore		= ignore,					\