casaroli opened a new pull request, #20705: URL: https://github.com/apache/nuttx/pull/20705
## Summary This PR is an experiment, like #20703. It fixes the nxstyle errors in 58 files in drivers/sensors. If the maintainers do not want this type of change, please reject or close it. CI runs nxstyle on every changed file whole. When a file has old style errors, a small fix to that file fails the check, and the author must first correct the style of the whole file. After this PR, a change to one of these files fails the check only because of its own lines. The changes are only indentation, blank lines and comment layout. Most of them move `case` labels and their bodies to the NuttX switch layout, or add a blank line after local declarations. The C tokens of each file are the same as before. Two files are not in this PR, because their remaining error needs new braces: as5048a.c and hdc1008.c. ## Impact The code does not change. The open PRs in drivers/sensors (#18880, #18802, #17405) only add new files, so they do not conflict. ## Testing - A token compare of master and this branch (C tokens, without whitespace and comments) finds no difference in any of the 58 files. - nxstyle reports no errors in the 58 files. - `tools/checkpatch.sh -c -u -m -g` passes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
