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:
Xiang Xiao 2023-07-25 05:13:01 -07:00 committed by Petro Karashchenko
parent b4e7251415
commit 13dfe41f6c

View File

@ -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);