From: David Brownell Date: Sun, 3 Sep 2006 20:37:11 +0000 (+0200) Subject: i2c: Let drivers constify i2c_algorithm data X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=af71ff690b92894f66ccede27f731150dc10d80d;p=mv-sheeva.git i2c: Let drivers constify i2c_algorithm data 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 --- diff --git a/include/linux/i2c.h b/include/linux/i2c.h index eb0628a7ecc..23ad1ee42a4 100644 --- a/include/linux/i2c.h +++ b/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. */