diff options
author | Jean Delvare <khali@linux-fr.org> | 2010-10-28 20:31:50 +0200 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2010-10-28 20:31:50 +0200 |
commit | 918ee91c071d6248c48bc6457a6dea286146e3ad (patch) | |
tree | 6b9dd62f6a0ccc57043678ec1129833481120ad7 /drivers/hwmon/adt7475.c | |
parent | bd5f47ec961594b1091839333600008f8166fd00 (diff) | |
download | kernel-common-918ee91c071d6248c48bc6457a6dea286146e3ad.tar.gz kernel-common-918ee91c071d6248c48bc6457a6dea286146e3ad.tar.bz2 kernel-common-918ee91c071d6248c48bc6457a6dea286146e3ad.zip |
hwmon: I2C addresses are constant
We can mark normal_i2c const. Almost all drivers do that already, so
fix the 3 remaining ones before they are used as (bad) examples for
new drivers.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: George Joseph <george.joseph@fairview5.com>
Reviewed-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/adt7475.c')
-rw-r--r-- | drivers/hwmon/adt7475.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c index a0c385145686..b5fcd87931cb 100644 --- a/drivers/hwmon/adt7475.c +++ b/drivers/hwmon/adt7475.c @@ -146,7 +146,7 @@ #define TEMP_OFFSET_REG(idx) (REG_TEMP_OFFSET_BASE + (idx)) #define TEMP_TRANGE_REG(idx) (REG_TEMP_TRANGE_BASE + (idx)) -static unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; +static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; enum chips { adt7473, adt7475, adt7476, adt7490 }; |