Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260760
b: refs/heads/master
c: a93d4f2
h: refs/heads/master
v: v3
  • Loading branch information
Iiro Valkonen authored and Dmitry Torokhov committed Jul 4, 2011
1 parent 3231760 commit 82da658
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81c88a711aef5552375c4296bb473fdf9b12273c
refs/heads/master: a93d4f2d023ea5e84c0104d4e479243c6ac77d17
6 changes: 4 additions & 2 deletions trunk/drivers/input/touchscreen/atmel_mxt_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,9 @@ static int mxt_check_reg_init(struct mxt_data *data)
if (!mxt_object_writable(object->type))
continue;

for (j = 0; j < object->size + 1; j++) {
for (j = 0;
j < (object->size + 1) * (object->instances + 1);
j++) {
config_offset = index + j;
if (config_offset > pdata->config_length) {
dev_err(dev, "Not enough config data!\n");
Expand All @@ -664,7 +666,7 @@ static int mxt_check_reg_init(struct mxt_data *data)
mxt_write_object(data, object->type, j,
pdata->config[config_offset]);
}
index += object->size + 1;
index += (object->size + 1) * (object->instances + 1);
}

return 0;
Expand Down

0 comments on commit 82da658

Please sign in to comment.