diff options
| author | Jean Delvare <khali@linux-fr.org> | 2008-01-27 18:14:47 +0100 | 
|---|---|---|
| committer | Jean Delvare <khali@hyperion.delvare> | 2008-01-27 18:14:47 +0100 | 
| commit | 922539a0a3c44e3b8dcf1025910f08e1940ba49f (patch) | |
| tree | 3e57c826212103be9f9b09772ceb89753f328bc4 | |
| parent | bfb6df24facfde7ec6191edbba798777efb3c375 (diff) | |
| download | olio-linux-3.10-922539a0a3c44e3b8dcf1025910f08e1940ba49f.tar.xz olio-linux-3.10-922539a0a3c44e3b8dcf1025910f08e1940ba49f.zip  | |
i2c: normal_i2c can be made const (rtc drivers)
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Alessandro Zummo <alessandro.zummo@towertech.it>
| -rw-r--r-- | drivers/rtc/rtc-ds1672.c | 2 | ||||
| -rw-r--r-- | drivers/rtc/rtc-isl1208.c | 2 | ||||
| -rw-r--r-- | drivers/rtc/rtc-max6900.c | 2 | ||||
| -rw-r--r-- | drivers/rtc/rtc-pcf8563.c | 2 | ||||
| -rw-r--r-- | drivers/rtc/rtc-pcf8583.c | 2 | ||||
| -rw-r--r-- | drivers/rtc/rtc-x1205.c | 2 | 
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/rtc/rtc-ds1672.c b/drivers/rtc/rtc-ds1672.c index dfef1637bfb..e0900ca678e 100644 --- a/drivers/rtc/rtc-ds1672.c +++ b/drivers/rtc/rtc-ds1672.c @@ -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; diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c index 1c743641b73..725b0c73c33 100644 --- a/drivers/rtc/rtc-isl1208.c +++ b/drivers/rtc/rtc-isl1208.c @@ -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 */ diff --git a/drivers/rtc/rtc-max6900.c b/drivers/rtc/rtc-max6900.c index a1cd448639c..7683412970c 100644 --- a/drivers/rtc/rtc-max6900.c +++ b/drivers/rtc/rtc-max6900.c @@ -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  }; diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c index 0242d803ebe..b3317fcc16c 100644 --- a/drivers/rtc/rtc-pcf8563.c +++ b/drivers/rtc/rtc-pcf8563.c @@ -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; diff --git a/drivers/rtc/rtc-pcf8583.c b/drivers/rtc/rtc-pcf8583.c index 556d0e7da35..c973ba94c42 100644 --- a/drivers/rtc/rtc-pcf8583.c +++ b/drivers/rtc/rtc-pcf8583.c @@ -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; diff --git a/drivers/rtc/rtc-x1205.c b/drivers/rtc/rtc-x1205.c index b3fae357ca4..b90fb1866ce 100644 --- a/drivers/rtc/rtc-x1205.c +++ b/drivers/rtc/rtc-x1205.c @@ -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;  |