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:
parent
3863be02a5
commit
2d39c01592
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
#ifndef ZEPHYR_INCLUDE_POWER_POWER_H_
|
#ifndef ZEPHYR_INCLUDE_POWER_POWER_H_
|
||||||
#define 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>
|
#include <pm/pm.h>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue