]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: imagis - use FIELD_GET where applicable
authorDuje Mihanović <duje.mihanovic@skole.hr>
Sun, 10 Mar 2024 05:18:05 +0000 (21:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 11:07:37 +0000 (13:07 +0200)
commitdddc9f40ac8e9da084e14712442854703938a2c9
tree9a85de4ac3e12efb6f5022346e583539f32b9618
parent2e90774fbbe0a56130ef843831f3be98dfc25cdb
Input: imagis - use FIELD_GET where applicable

[ Upstream commit c0ca3dbd03d66c6b9e044f48720e6ab5cef37ae5 ]

Instead of manually extracting certain bits from registers with binary
ANDs and shifts, the FIELD_GET macro can be used. With this in mind, the
*_SHIFT macros can be dropped.

Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
Link: https://lore.kernel.org/r/20240306-b4-imagis-keys-v3-1-2c429afa8420@skole.hr
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/touchscreen/imagis.c