Repository navigation
drivers/usbmisc/fusb302: Fix two unbalanced parentheses. - #20795
Merged
Merged
Conversation
The I2C_RESET() call in fusb302_irqworker() has no closing parenthesis, so the file does not compile with CONFIG_I2C_RESET. SET_WAIT_MODE() has one opening parenthesis too many, and its only user has one closing parenthesis too many to match it. Fix both. The code that the default configuration compiles does not change. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
Fix the older nxstyle errors in fusb302.c: indentation, alignment of braces and comments, and the blank line after declarations. This is a layout change only. The C tokens do not change, except one pair of braces around a single break statement, which nxstyle requires. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
casaroli
requested review from
pkarashchenko and
xiaoxiang781216
as code owners
October 18, 2026 23:13
|
casaroli
marked this pull request as draft
October 19, 2026 01:38
xiaoxiang781216
approved these changes
Oct 19, 2026
🔗 Cross-repo PR dependenciesThe read-only Build run reported the following dependent PR(s) and fetched head SHA(s): |
anchao
approved these changes
Oct 19, 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
drivers/usbmisc/fusb302.cdoes not compile withCONFIG_I2C_RESET: theI2C_RESET()call infusb302_irqworker()has no closing parenthesis.SET_WAIT_MODE()has one opening parenthesis too many, and its only user one closing parenthesis too many to match it.The first commit fixes both. The second commit fixes the older nxstyle errors of the file (layout only; one pair of braces around a single
break;, which nxstyle requires). The unbalanced parentheses had stopped nxstyle from checking the rest of the function, so the file needs both commits to pass the CI check.Impact
fusb302.ccompiles withCONFIG_I2C_RESET. The code that the default configuration compiles does not change.Testing
stm32f4discovery:nshwithCONFIG_USBMISC,CONFIG_STM32_I2C1,CONFIG_FUSB302andCONFIG_I2C_RESET:fusb302.c:1336: error: expected ';' before ')' tokenand 11 more errorsFor the layout commit: a token compare (comments and whitespace ignored) gives the same tokens except the added braces, and
objdump -dof the object built before and after with-D__LINE__=0is identical.tools/checkpatch.sh -c -u -m -gpasses.