summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Pfetsch <spfetsch@google.com>2019-06-25 13:10:40 -0700
committerSteve Pfetsch <spfetsch@google.com>2019-06-25 13:10:40 -0700
commitf84119eba35fef4f71b3bc7fcc4ad20ce3b90992 (patch)
tree37fbbdacddaac525d230679d9d8fb138a6f96cd2
parent01907521ece9c9445ce44de7068ce7a5541ceae9 (diff)
downloadfts_touch-f84119eba35fef4f71b3bc7fcc4ad20ce3b90992.tar.gz
input: touchscreen: fts: reduce golden mutual buffer to required length
The line that computed the length of the golden mutual raw data formatted for output over procfs was longer than necessary. Shorten to the correct length. Bug: 136021057 Change-Id: I3bbc015607db1adbd86561159312f4aa479dde60 Signed-off-by: Steve Pfetsch <spfetsch@google.com>
-rw-r--r--fts_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fts_proc.c b/fts_proc.c
index dd479ae..5b34113 100644
--- a/fts_proc.c
+++ b/fts_proc.c
@@ -1859,7 +1859,7 @@ static ssize_t fts_driver_test_write(struct file *file, const char __user *buf,
pr_info("GM data reading Finished!\n");
- size = gmRawData.data_size * sizeof(s32) + 6;
+ size = (6 + gmRawData.data_size) * sizeof(u16);
print_frame_short("Golden Mutual Data =",
array1dTo2d_short(