Skip to content

Commit

Permalink
format: modify spin_lock_irqsave format
Browse files Browse the repository at this point in the history
spin_lock_irqsave() should be spin_lock_irqsave(NULL)

Signed-off-by: TaiJu Wu <[email protected]>
  • Loading branch information
TaiJuWu committed Oct 6, 2023
1 parent 6b070b2 commit c25e3b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/ceva/src/common/ceva_modifyreg16.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void modifyreg16(unsigned int addr, uint16_t clearbits, uint16_t setbits)
irqstate_t flags;
uint16_t regval;

flags = spin_lock_irqsave();
flags = spin_lock_irqsave(NULL);
regval = getreg16(addr);
regval &= ~clearbits;
regval |= setbits;
Expand Down
2 changes: 1 addition & 1 deletion arch/ceva/src/common/ceva_modifyreg32.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void modifyreg32(unsigned int addr, uint32_t clearbits, uint32_t setbits)
irqstate_t flags;
uint32_t regval;

flags = spin_lock_irqsave();
flags = spin_lock_irqsave(NULL);
regval = getreg32(addr);
regval &= ~clearbits;
regval |= setbits;
Expand Down
2 changes: 1 addition & 1 deletion arch/ceva/src/common/ceva_modifyreg8.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void modifyreg8(unsigned int addr, uint8_t clearbits, uint8_t setbits)
irqstate_t flags;
uint8_t regval;

flags = spin_lock_irqsave();
flags = spin_lock_irqsave(NULL);
regval = getreg8(addr);
regval &= ~clearbits;
regval |= setbits;
Expand Down

0 comments on commit c25e3b5

Please sign in to comment.