arch/nrf52,nrf53,nrf91: fix nxstyle issues

arch/nrf52,nrf53,nrf91: fix nxstyle issues

Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
raiden00pl 2026-09-24 15:48:12 +02:00 • committed by Xiang Xiao
parent 058da97e95
commit 425e77e44e
8 changed files with 35 additions and 30 deletions

View file

@ -144,6 +144,7 @@ static int nrf52_gpiote_isr(int irq, void *context, void *arg)
xcpt_t callback = g_gpiote_ch_callbacks[i].callback;
void *cbarg = g_gpiote_ch_callbacks[i].arg;
ret = callback(irq, context, cbarg);
/* Clear event */
@ -172,11 +173,11 @@ static int nrf52_gpiote_isr(int irq, void *context, void *arg)
{
case 0:
addr = NRF52_GPIO_P0_BASE + NRF52_GPIO_LATCH_OFFSET;
break;
break;
#ifdef CONFIG_NRF52_HAVE_PORT1
case 1:
addr = NRF52_GPIO_P1_BASE + NRF52_GPIO_LATCH_OFFSET;
break;
break;
#endif
}
@ -220,7 +221,7 @@ static int nrf52_gpiote_isr(int irq, void *context, void *arg)
ret = callback(irq, context, cbarg);
}
#endif
}
}
}
return ret;

View file

@ -735,6 +735,7 @@ errout:
static uint32_t nrf52_rtc_getbase(struct nrf52_rtc_dev_s *dev)
{
struct nrf52_rtc_priv_s *rtc = (struct nrf52_rtc_priv_s *)dev;
DEBUGASSERT(dev);
return rtc->base;

View file

@ -740,10 +740,10 @@ static uint32_t nrf52_spi_setfrequency(struct spi_dev_s *dev,
switch (frequency)
{
case 125000:
{
regval = SPIM_FREQUENCY_125KBPS;
break;
}
{
regval = SPIM_FREQUENCY_125KBPS;
break;
}
case 250000:
{
@ -764,10 +764,10 @@ static uint32_t nrf52_spi_setfrequency(struct spi_dev_s *dev,
}
case 2000000:
{
regval = SPIM_FREQUENCY_2MBPS;
break;
}
{
regval = SPIM_FREQUENCY_2MBPS;
break;
}
case 4000000:
{

View file

@ -722,6 +722,7 @@ errout:
static uint32_t nrf53_rtc_getbase(struct nrf53_rtc_dev_s *dev)
{
struct nrf53_rtc_priv_s *rtc = (struct nrf53_rtc_priv_s *)dev;
DEBUGASSERT(dev);
return rtc->base;

View file

@ -795,10 +795,10 @@ static uint32_t nrf53_spi_setfrequency(struct spi_dev_s *dev,
switch (frequency)
{
case 125000:
{
regval = SPIM_FREQUENCY_125KBPS;
break;
}
{
regval = SPIM_FREQUENCY_125KBPS;
break;
}
case 250000:
{
@ -819,10 +819,10 @@ static uint32_t nrf53_spi_setfrequency(struct spi_dev_s *dev,
}
case 2000000:
{
regval = SPIM_FREQUENCY_2MBPS;
break;
}
{
regval = SPIM_FREQUENCY_2MBPS;
break;
}
case 4000000:
{

View file

@ -155,6 +155,7 @@ static int nrf91_gpiote_isr(int irq, void *context, void *arg)
xcpt_t callback = g_gpiote_ch_callbacks[i].callback;
void *cbarg = g_gpiote_ch_callbacks[i].arg;
ret = callback(irq, context, cbarg);
/* Clear event */
@ -183,11 +184,11 @@ static int nrf91_gpiote_isr(int irq, void *context, void *arg)
{
case 0:
addr = NRF91_GPIO_P0_BASE + NRF91_GPIO_LATCH_OFFSET;
break;
break;
#ifdef CONFIG_NRF91_HAVE_PORT1
case 1:
addr = NRF91_GPIO_P1_BASE + NRF91_GPIO_LATCH_OFFSET;
break;
break;
#endif
}
@ -231,7 +232,7 @@ static int nrf91_gpiote_isr(int irq, void *context, void *arg)
ret = callback(irq, context, cbarg);
}
#endif
}
}
}
return ret;

View file

@ -722,6 +722,7 @@ errout:
static uint32_t nrf91_rtc_getbase(struct nrf91_rtc_dev_s *dev)
{
struct nrf91_rtc_priv_s *rtc = (struct nrf91_rtc_priv_s *)dev;
DEBUGASSERT(dev);
return rtc->base;

View file

@ -713,10 +713,10 @@ static uint32_t nrf91_spi_setfrequency(struct spi_dev_s *dev,
switch (frequency)
{
case 125000:
{
regval = SPIM_FREQUENCY_125KBPS;
break;
}
{
regval = SPIM_FREQUENCY_125KBPS;
break;
}
case 250000:
{
@ -737,10 +737,10 @@ static uint32_t nrf91_spi_setfrequency(struct spi_dev_s *dev,
}
case 2000000:
{
regval = SPIM_FREQUENCY_2MBPS;
break;
}
{
regval = SPIM_FREQUENCY_2MBPS;
break;
}
case 4000000:
{