]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: pressure: HID: hid-sensor-press: Refactor channel initialization
authorNatália Salvino André <natalia.andre@ime.usp.br>
Tue, 19 May 2026 23:40:48 +0000 (20:40 -0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:47 +0000 (11:01 +0100)
commitf1cb3d3afd1024269ec1887a36b28efd9ea849a3
treec4e1b6d1c8ed623f8ad3689c8dc914f861170fa7
parent339002636932e56191ba810975a876fe4a3e223f
iio: pressure: HID: hid-sensor-press: Refactor channel initialization

Replace the local press_adjust_channel_bit_mask() function with a
compound literal for scan_type initialization to improve code
readability.

Signed-off-by: Natália Salvino André <natalia.andre@ime.usp.br>
Co-developed-by: Pietro Di Consolo Gregorio <pietro.gregorio@usp.br>
Signed-off-by: Pietro Di Consolo Gregorio <pietro.gregorio@usp.br>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/hid-sensor-press.c