We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c324345 commit b1a402eCopy full SHA for b1a402e
drivers/input/touchscreen/st1232.c
@@ -81,8 +81,10 @@ static int st1232_ts_read_data(struct st1232_ts_data *ts)
81
for (i = 0, y = 0; i < ts->chip_info->max_fingers; i++, y += 3) {
82
finger[i].is_valid = buf[i + y] >> 7;
83
if (finger[i].is_valid) {
84
- finger[i].x = ((buf[i + y] & 0x0070) << 4) | buf[i + 1];
85
- finger[i].y = ((buf[i + y] & 0x0007) << 8) | buf[i + 2];
+ finger[i].x = ((buf[i + y] & 0x0070) << 4) |
+ buf[i + y + 1];
86
+ finger[i].y = ((buf[i + y] & 0x0007) << 8) |
87
+ buf[i + y + 2];
88
89
/* st1232 includes a z-axis / touch strength */
90
if (ts->chip_info->have_z)
0 commit comments