i2c: Let drivers constify i2c_algorithm
PATCH 27/30 i2c: Let drivers constify i2c_algorithm
From: David Brownell <david-b at pacbell.net>
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 at users.sourceforge.net>
Signed-off-by Jean Delvare <khali at linux-fr.org>
Signed-off-by Greg Kroah-Hartman <gregkh at suse.de>
--- include/linux/i2c.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/i2c.h +1 -1
@@ -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. */
Signature · 1 line
1.4.2.1