]> err.no Git - linux-2.6/commitdiff
i2c: Constify i2c_algorithm declarations, part 1
authorJean Delvare <khali@linux-fr.org>
Sun, 3 Sep 2006 20:38:52 +0000 (22:38 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 22:38:52 +0000 (15:38 -0700)
i2c: Constify i2c_algorithm declarations, part 1

Make struct i2c_algorithm declarations const in all i2c algorithm
drivers.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/algos/i2c-algo-bit.c
drivers/i2c/algos/i2c-algo-pca.c
drivers/i2c/algos/i2c-algo-pcf.c
drivers/i2c/algos/i2c-algo-sgi.c

index 48fe3a3b0b5170b0bb238238390b19d3bf8828ea..21c36bfb5e6bf1b25522e7492bef978e29a8bde0 100644 (file)
@@ -512,7 +512,7 @@ static u32 bit_func(struct i2c_adapter *adap)
 
 /* -----exported algorithm data: ------------------------------------- */
 
-static struct i2c_algorithm i2c_bit_algo = {
+static const struct i2c_algorithm i2c_bit_algo = {
        .master_xfer    = bit_xfer,
        .functionality  = bit_func,
 };
index b88a6fcf7bd094abf75c67ba940cefe0fbd9ce58..9081c9fbcd2940a84f82827ee39ba60f1e08d086 100644 (file)
@@ -355,7 +355,7 @@ static int pca_init(struct i2c_algo_pca_data *adap)
        return 0;
 }
 
-static struct i2c_algorithm pca_algo = {
+static const struct i2c_algorithm pca_algo = {
        .master_xfer    = pca_xfer,
        .functionality  = pca_func,
 };
index 5b24930adb5a7b9e23721f47aca79daa7b450d04..3b2003398966910ec80236ccef17a41e6fe0c71f 100644 (file)
@@ -458,7 +458,7 @@ static u32 pcf_func(struct i2c_adapter *adap)
 
 /* -----exported algorithm data: ------------------------------------- */
 
-static struct i2c_algorithm pcf_algo = {
+static const struct i2c_algorithm pcf_algo = {
        .master_xfer    = pcf_xfer,
        .functionality  = pcf_func,
 };
index 932c4fa86c7374eb9cf667ab14a8d20cc94adcbf..490d99997fd098ffd9aa65f5321cfc2700bc2f65 100644 (file)
@@ -157,7 +157,7 @@ static u32 sgi_func(struct i2c_adapter *adap)
        return I2C_FUNC_SMBUS_EMUL;
 }
 
-static struct i2c_algorithm sgi_algo = {
+static const struct i2c_algorithm sgi_algo = {
        .master_xfer    = sgi_xfer,
        .functionality  = sgi_func,
 };