From khali@linux-fr.org Sun Sep 3 13:37:15 2006 Date: Sun, 3 Sep 2006 22:37:11 +0200 From: Jean Delvare To: Greg KH Cc: Linux I2C , David Brownell Subject: [PATCH 10/13] i2c: Let drivers constify i2c_algorithm data Message-Id: <20060903223711.d16cd370.khali@linux-fr.org> Content-Disposition: inline; filename=i2c-constify-i2c_algorithm.patch From: David Brownell i2c: Let drivers constify i2c_algorithm data Let drivers constify I2C algorithm method operations tables, moving them from ".data" to ".rodata". Signed-off-by: David Brownell Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- include/linux/i2c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- gregkh-2.6.orig/include/linux/i2c.h +++ gregkh-2.6/include/linux/i2c.h @@ -220,7 +220,7 @@ struct i2c_adapter { struct module *owner; unsigned int id; unsigned int class; - struct i2c_algorithm *algo;/* the algorithm to access the bus */ + const struct i2c_algorithm *algo; /* the algorithm to access the bus */ void *algo_data; /* --- administration stuff. */