Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Tobias Klauser and committed by
Jean Delvare
305183fc a92b36ed

+3 -3
+2 -2
drivers/i2c/busses/i2c-pmcmsp.c
··· 122 122 }; 123 123 124 124 /* The default settings */ 125 - const static struct pmcmsptwi_clockcfg pmcmsptwi_defclockcfg = { 125 + static const struct pmcmsptwi_clockcfg pmcmsptwi_defclockcfg = { 126 126 .standard = { 127 127 .filter = 0x3, 128 128 .clock = 0x1f, ··· 133 133 }, 134 134 }; 135 135 136 - const static struct pmcmsptwi_cfg pmcmsptwi_defcfg = { 136 + static const struct pmcmsptwi_cfg pmcmsptwi_defcfg = { 137 137 .arbf = 0x03, 138 138 .nak = 0x03, 139 139 .add10 = 0x00,
+1 -1
include/linux/i2c.h
··· 598 598 "additionally"); \ 599 599 I2C_CLIENT_MODULE_PARM(ignore, "List of adapter,address pairs not to " \ 600 600 "scan"); \ 601 - const static struct i2c_client_address_data addr_data = { \ 601 + static const struct i2c_client_address_data addr_data = { \ 602 602 .normal_i2c = normal_i2c, \ 603 603 .probe = probe, \ 604 604 .ignore = ignore, \