summaryrefslogtreecommitdiffstats
path: root/include/net/page_pool
diff options
context:
space:
mode:
authorNikita Travkin <nikita@trvn.ru>2024-10-04 21:17:30 +0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-10-18 16:03:04 -0700
commit2de01e0e57f3ebe7f90b08f6bca5ce0f3da3829f (patch)
treee75be71410193dc05bc481483d1bfcd038eb0b64 /include/net/page_pool
parent22a18935d7d96bbb1a28076f843c1926d0ba189e (diff)
downloadlinux-2de01e0e57f3ebe7f90b08f6bca5ce0f3da3829f.tar.gz
linux-2de01e0e57f3ebe7f90b08f6bca5ce0f3da3829f.tar.bz2
linux-2de01e0e57f3ebe7f90b08f6bca5ce0f3da3829f.zip
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 <jahau@rocketmail.com> Tested-by: Jakob Hauser <jahau@rocketmail.com> Fixes: 075d9b22c8fe ("Input: zinitix - add touchkey support") Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Nikita Travkin <nikita@trvn.ru> Tested-by: Yassine Oudjana <y.oudjana@protonmail.com> Link: https://lore.kernel.org/r/20241004-zinitix-no-keycodes-v2-1-876dc9fea4b6@trvn.ru Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/net/page_pool')
0 files changed, 0 insertions, 0 deletions