aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorJeff LaBundy <[email protected]>2022-10-22 19:57:00 -0500
committerDmitry Torokhov <[email protected]>2022-10-24 05:10:00 -0700
commit2f6fd232978906f6fb054529210b9faec384bd45 (patch)
treedfc0068f1393517195a1228d9339ec2cfc01428f /tools/perf/scripts/python/bin
parent99d03b54ef8506771c15deb714396665592f6adf (diff)
Input: iqs7222 - protect against undefined slider size
Select variants of silicon do not define a default slider size, in which case the size must be specified in the device tree. If it is not, the axis's maximum value is reported as 65535 due to unsigned integer overflow. To solve this problem, move the existing zero-check outside of the conditional block that checks whether the property is present. Fixes: e505edaedcb9 ("Input: add support for Azoteq IQS7222A/B/C") Signed-off-by: Jeff LaBundy <[email protected]> Link: https://lore.kernel.org/r/Y1SRXEi7XMlncDWk@nixie71 Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions