device: remove PM capability from SYS_DEVICE_DEFINE

The macro already mentions in the docstrings that PM is not supported:

"Invokes DEVICE_DEFINE() with no power management support".

This patch removed the PM entry from the macro and ajusts its uses.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-11-16 16:37:45 +01:00 committed by Carles Cufí
commit f4417dab46
5 changed files with 7 additions and 15 deletions

View file

@ -83,16 +83,14 @@ typedef int16_t device_handle_t;
/**
* @def SYS_DEVICE_DEFINE
*
* @brief Run an initialization function at boot at specified priority,
* and define device PM control function.
* @brief Run an initialization function at boot at specified priority.
*
* @details Invokes DEVICE_DEFINE() with no power management support
* (@p pm_action_cb), no API (@p api_ptr), and a device name derived from
* the @p init_fn name (@p dev_name).
*/
#define SYS_DEVICE_DEFINE(drv_name, init_fn, pm_action_cb, level, prio) \
DEVICE_DEFINE(Z_SYS_NAME(init_fn), drv_name, init_fn, \
pm_action_cb, \
#define SYS_DEVICE_DEFINE(drv_name, init_fn, level, prio) \
DEVICE_DEFINE(Z_SYS_NAME(init_fn), drv_name, init_fn, NULL, \
NULL, NULL, level, prio, NULL)
/**