]> Git Repo - linux.git/commitdiff
i2c: Let drivers constify i2c_algorithm data
authorDavid Brownell <[email protected]>
Sun, 3 Sep 2006 20:37:11 +0000 (22:37 +0200)
committerGreg Kroah-Hartman <[email protected]>
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 <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
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. */
This page took 0.054263 seconds and 4 git commands to generate.