Input: imagis - use FIELD_GET where applicable
authorDuje Mihanović <duje.mihanovic@skole.hr>
Sun, 10 Mar 2024 05:18:05 +0000 (21:18 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 10 Mar 2024 21:38:04 +0000 (14:38 -0700)
commitc0ca3dbd03d66c6b9e044f48720e6ab5cef37ae5
tree03f42521f0dba5f04cc835837d49c022044631e1
parenta4735d40a5da96a637af6e5bf9f6ec8b9d996acd
Input: imagis - use FIELD_GET where applicable

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>
drivers/input/touchscreen/imagis.c