diff options
author | David Brownell <david-b@pacbell.net> | 2006-09-03 22:37:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 15:38:52 -0700 |
commit | af71ff690b92894f66ccede27f731150dc10d80d (patch) | |
tree | fb9080f5648a8fc7e51c0861e7deb7b7bc8bb3d9 | |
parent | 872188420997f7f7c1b968fd9bce6578e4c3d45f (diff) | |
download | op-kernel-dev-af71ff690b92894f66ccede27f731150dc10d80d.zip op-kernel-dev-af71ff690b92894f66ccede27f731150dc10d80d.tar.gz |
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>
-rw-r--r-- | include/linux/i2c.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index eb0628a..23ad1ee 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. */ |