Commit 75c1c42d45131c3b998779cccc94edfc2c020193
Committed by
Sekhar Nori
1 parent
daf4972855
Exists in
ti-lsk-linux-4.1.y
and in
5 other branches
Input: edt-ft5x06 - Add support for 10 touch points for FT5506
FT5506 supports up to 10 touch points so increase the maximum support points to 10. Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Showing 1 changed file with 6 additions and 2 deletions Side-by-side Diff
drivers/input/touchscreen/edt-ft5x06.c
... | ... | @@ -174,7 +174,7 @@ |
174 | 174 | struct edt_ft5x06_ts_data *tsdata = dev_id; |
175 | 175 | struct device *dev = &tsdata->client->dev; |
176 | 176 | u8 cmd; |
177 | - u8 rdbuf[29]; | |
177 | + u8 rdbuf[59]; | |
178 | 178 | int i, type, x, y, id; |
179 | 179 | int offset, tplen, datalen; |
180 | 180 | int error; |
181 | 181 | |
... | ... | @@ -1124,11 +1124,15 @@ |
1124 | 1124 | .max_support_points = 5, |
1125 | 1125 | }; |
1126 | 1126 | |
1127 | +static const struct edt_i2c_chip_data edt_ft5506_data = { | |
1128 | + .max_support_points = 10, | |
1129 | +}; | |
1130 | + | |
1127 | 1131 | static const struct of_device_id edt_ft5x06_of_match[] = { |
1128 | 1132 | { .compatible = "edt,edt-ft5206", .data = &edt_ft5x06_data}, |
1129 | 1133 | { .compatible = "edt,edt-ft5306", .data = &edt_ft5x06_data}, |
1130 | 1134 | { .compatible = "edt,edt-ft5406", .data = &edt_ft5x06_data}, |
1131 | - { .compatible = "edt,edt-ft5506", .data = &edt_ft5x06_data}, | |
1135 | + { .compatible = "edt,edt-ft5506", .data = &edt_ft5506_data}, | |
1132 | 1136 | { /* sentinel */ } |
1133 | 1137 | }; |
1134 | 1138 | MODULE_DEVICE_TABLE(of, edt_ft5x06_of_match); |