diff options
author | Nikita Travkin <[email protected]> | 2024-10-04 21:17:30 +0500 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2024-10-18 16:03:04 -0700 |
commit | 2de01e0e57f3ebe7f90b08f6bca5ce0f3da3829f (patch) | |
tree | e75be71410193dc05bc481483d1bfcd038eb0b64 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 22a18935d7d96bbb1a28076f843c1926d0ba189e (diff) |
Input: zinitix - don't fail if linux,keycodes prop is absent
When initially adding the touchkey support, a mistake was made in the
property parsing code. The possible negative errno from
device_property_count_u32() was never checked, which was an oversight
left from converting to it from the of_property as part of the review
fixes.
Re-add the correct handling of the absent property, in which case zero
touchkeys should be assumed, which would disable the feature.
Reported-by: Jakob Hauser <[email protected]>
Tested-by: Jakob Hauser <[email protected]>
Fixes: 075d9b22c8fe ("Input: zinitix - add touchkey support")
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Nikita Travkin <[email protected]>
Tested-by: Yassine Oudjana <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions