From 46029914a7ac092f95e586759b8b6cc379af430c Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Mon, 14 Jun 2021 10:37:43 -0700 Subject: [PATCH] pm: state: Fix documentation PM_STATE_INFO_DT_ITEMS_LIST macro documentation was wrong. The example usage was returning the wrong type and the macro name was also not correct. Signed-off-by: Flavio Ceolin --- include/pm/state.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pm/state.h b/include/pm/state.h index 7d049fc1e82..f90dee94578 100644 --- a/include/pm/state.h +++ b/include/pm/state.h @@ -222,8 +222,8 @@ struct pm_state_info { * }; * * Example usage: * - * const enum pm_state states[] = - * PM_STATE_DT_INFO_ITEMS_LIST(DT_NODELABEL(cpu0)); + * const struct pm_state_info states[] = + * PM_STATE_INFO_DT_ITEMS_LIST(DT_NODELABEL(cpu0)); * * @param node_id A node identifier with compatible zephyr,power-state * @return an array of struct pm_state_info.