mirror-linux/drivers/input
Jeff LaBundy a7e8439e29 Input: iqs7222 - protect against undefined slider size
[ Upstream commit 2f6fd23297 ]

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: e505edaedc ("Input: add support for Azoteq IQS7222A/B/C")
Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Link: https://lore.kernel.org/r/Y1SRXEi7XMlncDWk@nixie71
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:03 +01:00
..
gameport input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
joystick Input: iforce - invert valid length check when fetching device IDs 2022-11-07 10:28:58 -08:00
keyboard Merge branch 'next' into for-linus 2022-10-09 22:30:23 -07:00
misc Input: iqs7222 - protect against undefined slider size 2022-12-31 13:32:03 +01:00
mouse Input: synaptics - switch touchpad on HP Laptop 15-da3001TU to RMI mode 2022-10-15 20:44:12 -07:00
rmi4 Input: synaptics-rmi4 - convert to use sysfs_emit() APIs 2022-09-27 09:00:41 -07:00
serio Input updates for v6.1-rc5 2022-11-18 17:56:29 -08:00
tablet input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
touchscreen Input updates for v6.1-rc7 2022-12-04 12:18:37 -08:00
Kconfig Input: extract ChromeOS vivaldi physmap show function 2022-03-14 21:11:09 -07:00
Makefile Input: extract ChromeOS vivaldi physmap show function 2022-03-14 21:11:09 -07:00
apm-power.c
evbug.c
evdev.c
ff-core.c input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
ff-memless.c input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
input-compat.c
input-compat.h
input-core-private.h Input: deactivate MT slots when inhibiting or suspending devices 2022-07-20 11:35:13 -07:00
input-leds.c
input-mt.c Input: deactivate MT slots when inhibiting or suspending devices 2022-07-20 11:35:13 -07:00
input-poller.c
input-poller.h
input.c Input: deactivate MT slots when inhibiting or suspending devices 2022-07-20 11:35:13 -07:00
joydev.c Input: joydev - fix comment typo 2022-09-25 00:57:25 -07:00
matrix-keymap.c
mousedev.c
sparse-keymap.c
touchscreen.c Input: touchscreen - avoid bitwise vs logical OR warning 2021-10-15 22:22:54 -07:00
vivaldi-fmap.c Input: extract ChromeOS vivaldi physmap show function 2022-03-14 21:11:09 -07:00