Skip to content

Commit

Permalink
pm: Fix unused-parameter warnings
Browse files Browse the repository at this point in the history
Added a few missing ARG_UNUSED

Signed-off-by: Benjamin Cabé <[email protected]>
  • Loading branch information
kartben authored and carlescufi committed Aug 21, 2023
1 parent cdd9493 commit d22e08c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/zephyr/pm/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions subsys/pm/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit d22e08c

Please sign in to comment.