Commit ab568cb
iio: accel: HID: hid-sensor-accel-3d: Refactor channel initialization
Clean up the channel initialization loop and replace the local
accel_3d_adjust_channel_bit_mask() function with a compound literal
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>1 parent 94574df commit ab568cb
1 file changed
Lines changed: 9 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 123 | | |
134 | 124 | | |
135 | 125 | | |
| |||
297 | 287 | | |
298 | 288 | | |
299 | 289 | | |
300 | | - | |
301 | 290 | | |
302 | | - | |
| 291 | + | |
303 | 292 | | |
304 | 293 | | |
305 | 294 | | |
306 | | - | |
307 | | - | |
| 295 | + | |
| 296 | + | |
308 | 297 | | |
309 | 298 | | |
310 | | - | |
311 | | - | |
312 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
313 | 304 | | |
314 | 305 | | |
315 | 306 | | |
| |||
0 commit comments