pm: deprecate power/power.h header

Generate a warning if included pointing to the new header.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-05-03 17:28:23 +02:00 committed by Anas Nashif
commit 2d39c01592

View file

@ -7,7 +7,7 @@
#ifndef ZEPHYR_INCLUDE_POWER_POWER_H_
#define ZEPHYR_INCLUDE_POWER_POWER_H_
/* NOTE: This header is kept for compatibility but will be deprecated soon */
#warning "<power/power.h> header is deprecated, use <pm/pm.h> instead"
#include <pm/pm.h>