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

hwmon: (thmc50) 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: Mark M. Hoffman <mhoffman@lightlink.com>

authored by

Tobias Klauser and committed by
Mark M. Hoffman
5910a9b2 ba7c1927

+3 -3
+3 -3
drivers/hwmon/thmc50.c
··· 52 52 */ 53 53 #define THMC50_REG_INTR 0x41 54 54 55 - const static u8 THMC50_REG_TEMP[] = { 0x27, 0x26, 0x20 }; 56 - const static u8 THMC50_REG_TEMP_MIN[] = { 0x3A, 0x38, 0x2C }; 57 - const static u8 THMC50_REG_TEMP_MAX[] = { 0x39, 0x37, 0x2B }; 55 + static const u8 THMC50_REG_TEMP[] = { 0x27, 0x26, 0x20 }; 56 + static const u8 THMC50_REG_TEMP_MIN[] = { 0x3A, 0x38, 0x2C }; 57 + static const u8 THMC50_REG_TEMP_MAX[] = { 0x39, 0x37, 0x2B }; 58 58 59 59 #define THMC50_REG_CONF_nFANOFF 0x20 60 60