pm: Fix unused-parameter warnings
Added a few missing ARG_UNUSED Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
cdd949325b
commit
d22e08c067
2 changed files with 6 additions and 0 deletions
|
|
@ -669,12 +669,16 @@ static inline bool pm_device_on_power_domain(const struct device *dev)
|
|||
static inline int pm_device_power_domain_add(const struct device *dev,
|
||||
const struct device *domain)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
ARG_UNUSED(domain);
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
static inline int pm_device_power_domain_remove(const struct device *dev,
|
||||
const struct device *domain)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
ARG_UNUSED(domain);
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -366,6 +366,7 @@ bool pm_device_on_power_domain(const struct device *dev)
|
|||
}
|
||||
return pm->domain != NULL;
|
||||
#else
|
||||
ARG_UNUSED(dev);
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
|
@ -382,6 +383,7 @@ bool pm_device_is_powered(const struct device *dev)
|
|||
(pm->domain == NULL) ||
|
||||
(pm->domain->pm->state == PM_DEVICE_STATE_ACTIVE);
|
||||
#else
|
||||
ARG_UNUSED(dev);
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue