hwmon: (max6639) Make normal_i2c array const
PATCH 1/1 hwmon: (max6639) Make normal_i2c array const
Signed-off-by Axel Lin <[email protected]>
--- drivers/hwmon/max6639.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/max6639.c +1 -1
@@ -35,7 +35,7 @@#include <linux/i2c/max6639.h> /* Addresses to scan */ -static unsigned short normal_i2c[] = {0x2c ,0x2e ,0x2f ,I2C_CLIENT_END }; +static const unsigned short normal_i2c[] = {0x2c ,0x2e ,0x2f ,I2C_CLIENT_END };/* The MAX6639 registers, valid channel numbers: 0, 1 */ #define MAX6639_REG_TEMP (ch) (0x00 + (ch))
Signature · 9 lines
1.9.1 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 11 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>--- drivers/hwmon/max6639.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hwmon/max6639.c +0
-0
drivers/hwmon/max6639.c line 41
Quoted 8 lines
drivers/hwmon/max6639.c +1
-1@@ -35,7 +35,7 @@#include <linux/i2c/max6639.h> /* Addresses to scan */ -static unsigned short normal_i2c[] = {0x2c ,0x2e ,0x2f ,I2C_CLIENT_END }; +static const unsigned short normal_i2c[] = {0x2c ,0x2e ,0x2f ,I2C_CLIENT_END };/* The MAX6639 registers, valid channel numbers: 0, 1 */ #define MAX6639_REG_TEMP (ch) (0x00 + (ch))
Acked-by Roland Stigge <[email protected]>
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 2 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>---
Applied to -next.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors