pm: constraint: drop __weak

No SoCs are re-implementing the constraints API. This _feature_ was
mostly put in place to cover TI platform needs, but it is no longer
needed. Refer to previous commit for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-02-02 12:01:46 +01:00 committed by Carles Cufí
parent bb40e38527
commit 2903680822

View file

@ -15,7 +15,7 @@ LOG_MODULE_DECLARE(pm, CONFIG_PM_LOG_LEVEL);
static atomic_t power_state_disable_count[PM_STATE_COUNT];
__weak void pm_constraint_set(enum pm_state state)
void pm_constraint_set(enum pm_state state)
{
atomic_val_t v;
@ -27,7 +27,7 @@ __weak void pm_constraint_set(enum pm_state state)
(void)(v);
}
__weak void pm_constraint_release(enum pm_state state)
void pm_constraint_release(enum pm_state state)
{
atomic_val_t v;
@ -39,7 +39,7 @@ __weak void pm_constraint_release(enum pm_state state)
(void)(v);
}
__weak bool pm_constraint_get(enum pm_state state)
bool pm_constraint_get(enum pm_state state)
{
__ASSERT(state < PM_STATE_COUNT, "Invalid power state!");