]> err.no Git - linux-2.6/commitdiff
i2c: Let drivers constify i2c_algorithm data
authorDavid Brownell <david-b@pacbell.net>
Sun, 3 Sep 2006 20:37:11 +0000 (22:37 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 22:38:52 +0000 (15:38 -0700)
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>
include/linux/i2c.h

index eb0628a7ecc637ec71e18714105ac814f679f718..23ad1ee42a4cb3d003be42e57327aa8d1d545270 100644 (file)
@@ -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. */