]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
i2c: normal_i2c can be made const (rtc drivers)
authorJean Delvare <khali@linux-fr.org>
Sun, 27 Jan 2008 17:14:47 +0000 (18:14 +0100)
committerJean Delvare <khali@hyperion.delvare>
Sun, 27 Jan 2008 17:14:47 +0000 (18:14 +0100)
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Alessandro Zummo <alessandro.zummo@towertech.it>
drivers/rtc/rtc-ds1672.c
drivers/rtc/rtc-isl1208.c
drivers/rtc/rtc-max6900.c
drivers/rtc/rtc-pcf8563.c
drivers/rtc/rtc-pcf8583.c
drivers/rtc/rtc-x1205.c

index dfef1637bfb8a1a69dc1848d75e2b490a458ddaf..e0900ca678ecc54ad7c50276d3cc4a580dcf2c40 100644 (file)
@@ -16,7 +16,7 @@
 #define DRV_VERSION "0.3"
 
 /* Addresses to scan: none. This chip cannot be detected. */
-static unsigned short normal_i2c[] = { I2C_CLIENT_END };
+static const unsigned short normal_i2c[] = { I2C_CLIENT_END };
 
 /* Insmod parameters */
 I2C_CLIENT_INSMOD;
index 1c743641b73b294c0e365b4ca27a93ff14015bbd..725b0c73c33399e1ccf9000fb0066af25914a15b 100644 (file)
@@ -61,7 +61,7 @@
 /* i2c configuration */
 #define ISL1208_I2C_ADDR 0xde
 
-static unsigned short normal_i2c[] = {
+static const unsigned short normal_i2c[] = {
        ISL1208_I2C_ADDR>>1, I2C_CLIENT_END
 };
 I2C_CLIENT_INSMOD; /* defines addr_data */
index a1cd448639c958d927b5be9634c9ccc3367e9ee1..7683412970c4d234d9abe2bc323f020a17f111c0 100644 (file)
@@ -54,7 +54,7 @@
 
 #define MAX6900_I2C_ADDR               0xa0
 
-static unsigned short normal_i2c[] = {
+static const unsigned short normal_i2c[] = {
        MAX6900_I2C_ADDR >> 1,
        I2C_CLIENT_END
 };
index 0242d803ebe5b21d43c42d6954d601ed05372194..b3317fcc16c378c62525ad8d29035ec24b7b04a1 100644 (file)
@@ -25,7 +25,7 @@
  * located at 0x51 will pass the validation routine due to
  * the way the registers are implemented.
  */
-static unsigned short normal_i2c[] = { I2C_CLIENT_END };
+static const unsigned short normal_i2c[] = { I2C_CLIENT_END };
 
 /* Module parameters */
 I2C_CLIENT_INSMOD;
index 556d0e7da35bd04dc44df605ca22e77f95793d25..c973ba94c422bc182c8b994dfd877dac967030bc 100644 (file)
@@ -40,7 +40,7 @@ struct pcf8583 {
 #define CTRL_ALARM     0x02
 #define CTRL_TIMER     0x01
 
-static unsigned short normal_i2c[] = { 0x50, I2C_CLIENT_END };
+static const unsigned short normal_i2c[] = { 0x50, I2C_CLIENT_END };
 
 /* Module parameters */
 I2C_CLIENT_INSMOD;
index b3fae357ca494e52ac257e80b3eb223417811de7..b90fb1866ce98735eb329c7a266dd32e902b4ee3 100644 (file)
@@ -32,7 +32,7 @@
  * unknown chips, the user must explicitly set the probe parameter.
  */
 
-static unsigned short normal_i2c[] = { I2C_CLIENT_END };
+static const unsigned short normal_i2c[] = { I2C_CLIENT_END };
 
 /* Insmod parameters */
 I2C_CLIENT_INSMOD;