pm: device: add parentheses to Z_PM_DEVICE_GET
Improve the macro by adding surrounding parentheses. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
ddc168fa78
commit
d80d47000b
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ struct pm_device {
|
||||||
*
|
*
|
||||||
* @param dev_name Device name.
|
* @param dev_name Device name.
|
||||||
*/
|
*/
|
||||||
#define Z_PM_DEVICE_GET(dev_name) &Z_PM_DEVICE_NAME(dev_name)
|
#define Z_PM_DEVICE_GET(dev_name) (&Z_PM_DEVICE_NAME(dev_name))
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define Z_PM_DEVICE_DEFINE(node_id, dev_name, pm_action_cb)
|
#define Z_PM_DEVICE_DEFINE(node_id, dev_name, pm_action_cb)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue