summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorNatália Salvino André <natalia.andre@ime.usp.br>2026-05-19 20:40:44 -0300
committerJonathan Cameron <jic23@kernel.org>2026-05-31 11:01:47 +0100
commit3a7f08f66ec31b23822f107444e7c6816909ec1c (patch)
treeadd599594db54629f5c0e1db7b9efcef31d7319c /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parentab568cb755600dda283541179e9338e1f0faed9f (diff)
iio: gyro: HID: hid-sensor-gyro-3d: Refactor channel initialization
Replace the local gyro_3d_adjust_channel_bit_mask() function with a compound literal for scan_type initialization to improve code readability. Additionaly, clean up the channel initialization loop by iterating directly over the channel scan indices. 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>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions