Repository navigation
drivers/sensors: Fix the nxstyle errors in 58 files. - #20705
Merged
Merged
Conversation
Fix the indentation and blank lines that nxstyle reports, so that a later change to one of these files passes the CI check, which checks every changed file whole. Whitespace and comment layout only. The C tokens of each file are the same as before. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
casaroli
requested review from
Donny9,
Ouss4,
acassis,
anchao,
btashton,
fdcavalcanti,
jerpelea,
linguini1,
pkarashchenko,
raiden00pl,
simbit18,
xiaoxiang781216 and
yamt
as code owners
October 16, 2026 13:25
xiaoxiang781216
approved these changes
Oct 16, 2026
This was referenced Oct 16, 2026
michallenc
approved these changes
Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
caselabels 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
tools/checkpatch.sh -c -u -m -gpasses.