summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorJohannes Kirchmair <johannes.kirchmair@skidata.com>2025-01-29 14:51:20 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2025-09-03 07:44:00 -0700
commit9a12e2fb3f517d5bd72efa565a8e591e6fff311c (patch)
tree4e93535053cc2c277d20d5692f54c59624ac5207 /scripts/lib/kdoc/kdoc_output.py
parentd504bbda8ca689585bdf663514a187dd3c9f0226 (diff)
Input: tsc2007 - prevent overflow in pressure calculation
The touch resistance calculation in the tsc2007 driver is prone to overflow if (z2 - z1) is large and also x is reasonably big. This overflow results in the driver emitting input events when very little touch pressure is applied. In these events the x and y coordinates can be substantially off. Avoid the overflow by using u64 when calculating resistance value. Signed-off-by: Johannes Kirchmair <johannes.kirchmair@skidata.com> Link: https://lore.kernel.org/r/20250129-fix_tsc_calculation_overflow-v2-1-9e51333496ad@skidata.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions