aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/i2c-core.c4
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
980int i2c_probe(struct i2c_adapter *adapter, 980int 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++) {