arch: cxd56xx: Fix nxstyle

Fix error: Case statement should be on a new line.

Signed-off-by: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com>
This commit is contained in:
SPRESENSE 2026-03-25 21:36:44 +09:00 committed by archer
parent 48e9de51f9
commit 2a4c5c8bee

View file

@ -313,13 +313,13 @@ static int ch2dmac(int ch)
{
switch (ch)
{
case 0: case 1:
case 0 ... 1:
return 1;
case 2: case 3: case 4: case 5: case 6: /* APP IDMAC */
case 2 ... 6: /* APP IDMAC */
return 3;
case 7: case 8: /* APP SKDMAC */
case 7 ... 8: /* APP SKDMAC */
return 2;
default:
default:
return 0;
}
}
@ -330,9 +330,12 @@ static struct dmac_register_map *get_device(int ch)
switch (id)
{
case 1: return (struct dmac_register_map *)DMAC1_REG_BASE;
case 2: return (struct dmac_register_map *)DMAC2_REG_BASE;
case 3: return (struct dmac_register_map *)DMAC3_REG_BASE;
case 1:
return (struct dmac_register_map *)DMAC1_REG_BASE;
case 2:
return (struct dmac_register_map *)DMAC2_REG_BASE;
case 3:
return (struct dmac_register_map *)DMAC3_REG_BASE;
}
return NULL;
@ -366,13 +369,13 @@ static int get_pmid(int ch)
{
switch (ch)
{
case 0: case 1:
case 0 ... 1:
return PM_APP_ADMAC;
case 2: case 3: case 4: case 5: case 6:
case 2 ... 6:
return PM_APP_IDMAC;
case 7: case 8:
case 7 ... 8:
return PM_APP_SKDMAC;
default:
default:
break; /* may not comes here */
}