diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-09-03 16:38:52 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 18:38:52 -0400 |
commit | 9e11a9fbfe48a2f65188aae64bf4f690e40ea2f4 (patch) | |
tree | c5217391e5e69ff4a176feb8f203ae5c0d0359bb /drivers/i2c | |
parent | af71ff690b92894f66ccede27f731150dc10d80d (diff) |
i2c: Constify i2c_algorithm declarations, part 1
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/algos/i2c-algo-bit.c | 2 | ||||
-rw-r--r-- | drivers/i2c/algos/i2c-algo-pca.c | 2 | ||||
-rw-r--r-- | drivers/i2c/algos/i2c-algo-pcf.c | 2 | ||||
-rw-r--r-- | drivers/i2c/algos/i2c-algo-sgi.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/i2c/algos/i2c-algo-bit.c b/drivers/i2c/algos/i2c-algo-bit.c index 48fe3a3b0b51..21c36bfb5e6b 100644 --- a/drivers/i2c/algos/i2c-algo-bit.c +++ b/drivers/i2c/algos/i2c-algo-bit.c | |||
@@ -512,7 +512,7 @@ static u32 bit_func(struct i2c_adapter *adap) | |||
512 | 512 | ||
513 | /* -----exported algorithm data: ------------------------------------- */ | 513 | /* -----exported algorithm data: ------------------------------------- */ |
514 | 514 | ||
515 | static struct i2c_algorithm i2c_bit_algo = { | 515 | static const struct i2c_algorithm i2c_bit_algo = { |
516 | .master_xfer = bit_xfer, | 516 | .master_xfer = bit_xfer, |
517 | .functionality = bit_func, | 517 | .functionality = bit_func, |
518 | }; | 518 | }; |
diff --git a/drivers/i2c/algos/i2c-algo-pca.c b/drivers/i2c/algos/i2c-algo-pca.c index b88a6fcf7bd0..9081c9fbcd29 100644 --- a/drivers/i2c/algos/i2c-algo-pca.c +++ b/drivers/i2c/algos/i2c-algo-pca.c | |||
@@ -355,7 +355,7 @@ static int pca_init(struct i2c_algo_pca_data *adap) | |||
355 | return 0; | 355 | return 0; |
356 | } | 356 | } |
357 | 357 | ||
358 | static struct i2c_algorithm pca_algo = { | 358 | static const struct i2c_algorithm pca_algo = { |
359 | .master_xfer = pca_xfer, | 359 | .master_xfer = pca_xfer, |
360 | .functionality = pca_func, | 360 | .functionality = pca_func, |
361 | }; | 361 | }; |
diff --git a/drivers/i2c/algos/i2c-algo-pcf.c b/drivers/i2c/algos/i2c-algo-pcf.c index 5b24930adb5a..3b2003398966 100644 --- a/drivers/i2c/algos/i2c-algo-pcf.c +++ b/drivers/i2c/algos/i2c-algo-pcf.c | |||
@@ -458,7 +458,7 @@ static u32 pcf_func(struct i2c_adapter *adap) | |||
458 | 458 | ||
459 | /* -----exported algorithm data: ------------------------------------- */ | 459 | /* -----exported algorithm data: ------------------------------------- */ |
460 | 460 | ||
461 | static struct i2c_algorithm pcf_algo = { | 461 | static const struct i2c_algorithm pcf_algo = { |
462 | .master_xfer = pcf_xfer, | 462 | .master_xfer = pcf_xfer, |
463 | .functionality = pcf_func, | 463 | .functionality = pcf_func, |
464 | }; | 464 | }; |
diff --git a/drivers/i2c/algos/i2c-algo-sgi.c b/drivers/i2c/algos/i2c-algo-sgi.c index 932c4fa86c73..490d99997fd0 100644 --- a/drivers/i2c/algos/i2c-algo-sgi.c +++ b/drivers/i2c/algos/i2c-algo-sgi.c | |||
@@ -157,7 +157,7 @@ static u32 sgi_func(struct i2c_adapter *adap) | |||
157 | return I2C_FUNC_SMBUS_EMUL; | 157 | return I2C_FUNC_SMBUS_EMUL; |
158 | } | 158 | } |
159 | 159 | ||
160 | static struct i2c_algorithm sgi_algo = { | 160 | static const struct i2c_algorithm sgi_algo = { |
161 | .master_xfer = sgi_xfer, | 161 | .master_xfer = sgi_xfer, |
162 | .functionality = sgi_func, | 162 | .functionality = sgi_func, |
163 | }; | 163 | }; |