diff options
author | Mark M. Hoffman <mhoffman@lightlink.com> | 2008-01-27 12:14:46 -0500 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2008-01-27 12:14:46 -0500 |
commit | bfb6df24facfde7ec6191edbba798777efb3c375 (patch) | |
tree | 474d907bad7e11e0595183cfa39197e03d85e6d5 /drivers/i2c | |
parent | 6408a8338c63e2beb50e8128814cbc1170390d3a (diff) |
i2c: Constify client address data
This patch allows much of the I2C client address data to move from initdata
into text.
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index b5e13e405e72..7788e1730063 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -978,7 +978,7 @@ static int i2c_probe_address(struct i2c_adapter *adapter, int addr, int kind, | |||
978 | } | 978 | } |
979 | 979 | ||
980 | int i2c_probe(struct i2c_adapter *adapter, | 980 | int i2c_probe(struct i2c_adapter *adapter, |
981 | struct i2c_client_address_data *address_data, | 981 | const struct i2c_client_address_data *address_data, |
982 | int (*found_proc) (struct i2c_adapter *, int, int)) | 982 | int (*found_proc) (struct i2c_adapter *, int, int)) |
983 | { | 983 | { |
984 | int i, err; | 984 | int i, err; |
@@ -987,7 +987,7 @@ int i2c_probe(struct i2c_adapter *adapter, | |||
987 | /* Force entries are done first, and are not affected by ignore | 987 | /* Force entries are done first, and are not affected by ignore |
988 | entries */ | 988 | entries */ |
989 | if (address_data->forces) { | 989 | if (address_data->forces) { |
990 | unsigned short **forces = address_data->forces; | 990 | const unsigned short * const *forces = address_data->forces; |
991 | int kind; | 991 | int kind; |
992 | 992 | ||
993 | for (kind = 0; forces[kind]; kind++) { | 993 | for (kind = 0; forces[kind]; kind++) { |