Commit 9fa9687
input: goodix: Don't memset touch_data
Touch_data is read by goodix_ts_input_report() as long as id is matching
with counter. We can assume that id = 0 indicates end of data. This means
zeroing touch_data can be removed completely and replaced with a simple
zero assignment onto the next id in data package.
Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Signed-off-by: onettboots <blackcocopet@gmail.com>1 parent 0cb8741 commit 9fa9687
1 file changed
Lines changed: 4 additions & 4 deletions
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1796 | 1796 | | |
1797 | 1797 | | |
1798 | 1798 | | |
1799 | | - | |
1800 | | - | |
1801 | | - | |
1802 | | - | |
1803 | 1799 | | |
1804 | 1800 | | |
1805 | 1801 | | |
| |||
1816 | 1812 | | |
1817 | 1813 | | |
1818 | 1814 | | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
1819 | 1819 | | |
1820 | 1820 | | |
1821 | 1821 | | |
| |||
0 commit comments