diff options
author | Jean Delvare <khali@linux-fr.org> | 2010-10-28 14:31:50 -0400 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2010-10-28 14:31:50 -0400 |
commit | 918ee91c071d6248c48bc6457a6dea286146e3ad (patch) | |
tree | 6b9dd62f6a0ccc57043678ec1129833481120ad7 /drivers/hwmon/asc7621.c | |
parent | bd5f47ec961594b1091839333600008f8166fd00 (diff) |
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/asc7621.c')
-rw-r--r-- | drivers/hwmon/asc7621.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/asc7621.c b/drivers/hwmon/asc7621.c index 89b4f3babe87..d2596cec18b5 100644 --- a/drivers/hwmon/asc7621.c +++ b/drivers/hwmon/asc7621.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/mutex.h> | 28 | #include <linux/mutex.h> |
29 | 29 | ||
30 | /* Addresses to scan */ | 30 | /* Addresses to scan */ |
31 | static unsigned short normal_i2c[] = { | 31 | static const unsigned short normal_i2c[] = { |
32 | 0x2c, 0x2d, 0x2e, I2C_CLIENT_END | 32 | 0x2c, 0x2d, 0x2e, I2C_CLIENT_END |
33 | }; | 33 | }; |
34 | 34 | ||
@@ -52,7 +52,7 @@ struct asc7621_chip { | |||
52 | u8 company_id; | 52 | u8 company_id; |
53 | u8 verstep_reg; | 53 | u8 verstep_reg; |
54 | u8 verstep_id; | 54 | u8 verstep_id; |
55 | unsigned short *addresses; | 55 | const unsigned short *addresses; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | static struct asc7621_chip asc7621_chips[] = { | 58 | static struct asc7621_chip asc7621_chips[] = { |