This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch releases/13.0 in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 3daa495d31961ac93f4f0c3c2988467645142f7e Author: AlmAck <[email protected]> AuthorDate: Sun Aug 30 20:04:41 2026 +0200 arch/arm/nrf53: fix nxstyle errors in nrf53_gpiote.c Pre-existing violations in this file, reported by checkpatch because the preceding commit touches it: nrf53_gpiote.c:185: Missing blank line after declarations nrf53_gpiote.c:213: Bad alignment nrf53_gpiote.c:216: Bad alignment nrf53_gpiote.c:259: Bad right brace alignment Add the blank line after the declarations in the channel-callback block, indent the two `break;` statements into their case bodies, and align the brace closing the per-port `for` loop with its opening at line 209 (it sat at seven spaces, so neither the loop's eight nor anything else). Whitespace only — no functional change, brace count unchanged. Signed-off-by: AlmAck <[email protected]> --- arch/arm/src/nrf53/nrf53_gpiote.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/nrf53/nrf53_gpiote.c b/arch/arm/src/nrf53/nrf53_gpiote.c index 139e4f8945b..4099afe9221 100644 --- a/arch/arm/src/nrf53/nrf53_gpiote.c +++ b/arch/arm/src/nrf53/nrf53_gpiote.c @@ -182,6 +182,7 @@ static int nrf53_gpiote_isr(int irq, void *context, void *arg) xcpt_t callback = g_gpiote_ch_callbacks[off].callback; void *cbarg = g_gpiote_ch_callbacks[off].arg; + ret = callback(irq, context, cbarg); /* Clear event */ @@ -210,10 +211,11 @@ static int nrf53_gpiote_isr(int irq, void *context, void *arg) { case 0: addr = NRF53_GPIO_P0_BASE + NRF53_GPIO_LATCH_OFFSET; - break; + break; + case 1: addr = NRF53_GPIO_P1_BASE + NRF53_GPIO_LATCH_OFFSET; - break; + break; } /* Retrieve LATCH register */ @@ -256,7 +258,7 @@ static int nrf53_gpiote_isr(int irq, void *context, void *arg) ret = callback(irq, context, cbarg); } #endif - } + } } return ret;
