This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 8f42b3435e118ef9c89b7214cdcd2ccc732aa7a7 Author: Max Kriegleder <[email protected]> AuthorDate: Sat Oct 24 12:52:49 2026 +0200 arch/arm/nrf52: Fix nxstyle errors in nrf52_i2c.c. Indent the case labels of the frequency switch in nrf52_i2c_transfer() one level in from the switch body's brace, so the file passes checkpatch. Whitespace only: nrf52-feather:i2c builds to the same nuttx.bin. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Max Kriegleder <[email protected]> --- arch/arm/src/nrf52/nrf52_i2c.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/nrf52/nrf52_i2c.c b/arch/arm/src/nrf52/nrf52_i2c.c index 2bf4d17b2df..7ea13584088 100644 --- a/arch/arm/src/nrf52/nrf52_i2c.c +++ b/arch/arm/src/nrf52/nrf52_i2c.c @@ -244,25 +244,25 @@ static int nrf52_i2c_transfer(struct i2c_master_s *dev, switch (priv->msgv->frequency) { - case 100000: + case 100000: { regval = TWIM_FREQUENCY_100KBPS; break; } - case 250000: + case 250000: { regval = TWIM_FREQUENCY_250KBPS; break; } - case 400000: + case 400000: { regval = TWIM_FREQUENCY_400KBPS; break; } - default: + default: { ret = -EINVAL; goto errout;
