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:
parent
c78c312c82
commit
f4417dab46
5 changed files with 7 additions and 15 deletions
|
@ -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)
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue