]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: playstation: Make use of bitfield macros
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 24 Jun 2025 21:56:45 +0000 (00:56 +0300)
committerJiri Kosina <jkosina@suse.com>
Wed, 17 Sep 2025 09:33:43 +0000 (11:33 +0200)
commit0d52aafb8bcee01b11ec8f3b46050540585431eb
tree9ef9ba610385d670268b9b039104b2b83f4dc406
parent02d6eeedbc36d4b309d5518778071a749ef79c4e
HID: playstation: Make use of bitfield macros

Improve code readability and make it more robust by replacing open coded
bit operations with the equivalent bitfield macros.

While at it, also fix the vertical alignment for some of the bitfield
constants.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Benjamin Tissoires <bentiss@kernel.org>
Tested-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-playstation.c