Skip to content

drivers/sensors: Fix the nxstyle errors in 58 files. - #20705

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
casaroli:sensors-nxstyle
Oct 17, 2026
Merged

xiaoxiang781216 merged 1 commit into
apache:masterfrom
casaroli:sensors-nxstyle

Conversation

@casaroli

Copy link
Copy Markdown
Contributor

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.

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]>
@github-actions github-actions Bot added Area: Sensors Sensors issues Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces. labels Oct 16, 2026
@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@xiaoxiang781216
xiaoxiang781216 merged commit adc3e05 into apache:master Oct 17, 2026
49 of 53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Sensors Sensors issues Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants