Fix include/nuttx/hwspinlock/hwspinlock.h:117:3: error: too few arguments to function 'hwspin_unlock'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
b4e7251415
commit
13dfe41f6c
@ -104,15 +104,13 @@ hwspin_lock_irqsave(FAR struct hwspinlock_dev_s *dev,
|
||||
return flags;
|
||||
}
|
||||
|
||||
static inline void hwspin_unlock(FAR struct hwspinlock_dev_s *dev,
|
||||
int id, int priority)
|
||||
static inline void hwspin_unlock(FAR struct hwspinlock_dev_s *dev, int id)
|
||||
{
|
||||
dev->ops->unlock(dev, id);
|
||||
}
|
||||
|
||||
static inline void hwspin_unlock_restore(FAR struct hwspinlock_dev_s *dev,
|
||||
int id, int priority,
|
||||
irqstate_t flags)
|
||||
int id, irqstate_t flags)
|
||||
{
|
||||
hwspin_unlock(dev, id);
|
||||
spin_lock_restore(&dev->lock, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user