From cc6c9086de956c04a6e839e30090f84a112cb752 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Wed, 28 Apr 2021 22:45:28 +0200 Subject: [PATCH] pm: deprecate device_pm_control_nop All in-tree usage has been replaced with `NULL`, so flag it as deprecated. Signed-off-by: Gerard Marull-Paretas --- include/device.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/device.h b/include/device.h index 7fa898d06fb..7499da5149c 100644 --- a/include/device.h +++ b/include/device.h @@ -922,12 +922,8 @@ static inline int device_pm_put_sync(const struct device *dev) { return -ENOTSUP #endif #endif -/** - * @brief Alias for legacy use of device_pm_control_nop. - * - * @note Usage of NULL is preferred, this alias will eventually be removed. - */ -#define device_pm_control_nop NULL +/** Alias for legacy use of device_pm_control_nop */ +#define device_pm_control_nop __DEPRECATED_MACRO NULL /** * @}