Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af71ff69 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman
Browse files

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 87218842
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -220,7 +220,7 @@ struct i2c_adapter {
	struct module *owner;
	struct module *owner;
	unsigned int id;
	unsigned int id;
	unsigned int class;
	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;
	void *algo_data;


	/* --- administration stuff. */
	/* --- administration stuff. */