format: modify spin_lock_irqsave format
spin_lock_irqsave() should be spin_lock_irqsave(NULL) Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
This commit is contained in:
parent
ffba0d15a5
commit
1b843633e6
@ -44,7 +44,7 @@ void modifyreg16(unsigned int addr, uint16_t clearbits, uint16_t setbits)
|
|||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
uint16_t regval;
|
uint16_t regval;
|
||||||
|
|
||||||
flags = spin_lock_irqsave();
|
flags = spin_lock_irqsave(NULL);
|
||||||
regval = getreg16(addr);
|
regval = getreg16(addr);
|
||||||
regval &= ~clearbits;
|
regval &= ~clearbits;
|
||||||
regval |= setbits;
|
regval |= setbits;
|
||||||
|
@ -44,7 +44,7 @@ void modifyreg32(unsigned int addr, uint32_t clearbits, uint32_t setbits)
|
|||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
uint32_t regval;
|
uint32_t regval;
|
||||||
|
|
||||||
flags = spin_lock_irqsave();
|
flags = spin_lock_irqsave(NULL);
|
||||||
regval = getreg32(addr);
|
regval = getreg32(addr);
|
||||||
regval &= ~clearbits;
|
regval &= ~clearbits;
|
||||||
regval |= setbits;
|
regval |= setbits;
|
||||||
|
@ -44,7 +44,7 @@ void modifyreg8(unsigned int addr, uint8_t clearbits, uint8_t setbits)
|
|||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
uint8_t regval;
|
uint8_t regval;
|
||||||
|
|
||||||
flags = spin_lock_irqsave();
|
flags = spin_lock_irqsave(NULL);
|
||||||
regval = getreg8(addr);
|
regval = getreg8(addr);
|
||||||
regval &= ~clearbits;
|
regval &= ~clearbits;
|
||||||
regval |= setbits;
|
regval |= setbits;
|
||||||
|
Loading…
Reference in New Issue
Block a user