aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Brownell <david-b@pacbell.net>2006-09-03 16:37:11 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-26 18:38:52 -0400
commitaf71ff690b92894f66ccede27f731150dc10d80d (patch)
treefb9080f5648a8fc7e51c0861e7deb7b7bc8bb3d9 /include/linux
parent872188420997f7f7c1b968fd9bce6578e4c3d45f (diff)
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 <dbrownell@users.sourceforge.net> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/i2c.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index eb0628a7ecc6..23ad1ee42a4c 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -220,7 +220,7 @@ struct i2c_adapter {
220 struct module *owner; 220 struct module *owner;
221 unsigned int id; 221 unsigned int id;
222 unsigned int class; 222 unsigned int class;
223 struct i2c_algorithm *algo;/* the algorithm to access the bus */ 223 const struct i2c_algorithm *algo; /* the algorithm to access the bus */
224 void *algo_data; 224 void *algo_data;
225 225
226 /* --- administration stuff. */ 226 /* --- administration stuff. */