Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]> Fixes: 075d9b2 ("Input: zinitix - add touchkey support") Signed-off-by: Nikita Travkin <[email protected]>
- Loading branch information