linux-stable/drivers/input
Nathan Chancellor 6904679c84 Input: touchscreen - Fix backport of a02dcde595
Upstream commit a02dcde595 ("Input: touchscreen - avoid bitwise vs
logical OR warning") was applied as commit f6e9e7be9b ("Input:
touchscreen - avoid bitwise vs logical OR warning") in linux-5.4.y but
it did not properly account for commit d9265e8a87 ("Input:
of_touchscreen - add support for touchscreen-min-x|y"), which means the
warning mentioned in the commit message is not fully fixed:

drivers/input/touchscreen/of_touchscreen.c:78:17: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
        data_present = touchscreen_get_prop_u32(dev, "touchscreen-min-x",
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/input/touchscreen/of_touchscreen.c:78:17: note: cast one or both operands to int to silence this warning
drivers/input/touchscreen/of_touchscreen.c:92:17: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
        data_present = touchscreen_get_prop_u32(dev, "touchscreen-min-y",
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/input/touchscreen/of_touchscreen.c:92:17: note: cast one or both operands to int to silence this warning
2 warnings generated.

It seems like the 4.19 backport was applied to the 5.4 tree, which did
not have any conflicts so no issue was noticed at that point.

Fix up the backport to bring it more in line with the upstream version
so that there is no warning.

Fixes: f6e9e7be9b ("Input: touchscreen - avoid bitwise vs logical OR warning")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-11 15:23:30 +01:00
..
gameport
joystick Input: spaceball - fix parsing of movement data packets 2022-01-05 12:37:46 +01:00
keyboard Input: snvs_pwrkey - add clk handling 2021-10-27 09:54:29 +02:00
misc Input: cm109 - do not stomp on control URB 2020-12-16 10:56:57 +01:00
mouse Input: appletouch - initialize work before device registration 2022-01-05 12:37:46 +01:00
rmi4 Input: synaptics-rmi4 - fix error return code in rmi_driver_probe() 2020-06-03 08:21:17 +02:00
serio Input: i8042 - enable deferred probe quirk for ASUS UM325UA 2022-01-05 12:37:43 +01:00
tablet Input: pegasus_notetaker - fix endpoint sanity check 2020-01-29 16:45:29 +01:00
touchscreen Input: touchscreen - Fix backport of a02dcde595 2022-01-11 15:23:30 +01:00
Kconfig
Makefile Input: add support for polling to input devices 2019-08-20 12:04:07 -07:00
apm-power.c
evbug.c
evdev.c Input: evdev - call input_flush_device() on release(), not flush() 2020-06-03 08:21:16 +02:00
ff-core.c
ff-memless.c Input: ff-memless - kill timer in destroy() 2019-11-15 11:45:03 -08:00
input-compat.c
input-compat.h
input-leds.c
input-mt.c
input-polldev.c
input-poller.c Input: add support for polling to input devices 2019-08-20 12:04:07 -07:00
input-poller.h Input: add support for polling to input devices 2019-08-20 12:04:07 -07:00
input.c Input: fix stale timestamp on key autorepeat events 2020-04-01 11:01:57 +02:00
joydev.c Input: joydev - prevent use of not validated data in JSIOCSBTNMAP ioctl 2021-07-14 16:53:02 +02:00
matrix-keymap.c Input: matrix-keymap - switch to use device_property_count_u32() 2019-08-12 00:03:13 -07:00
mousedev.c
sparse-keymap.c