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:
Gerard Marull-Paretas 2022-01-17 15:13:09 +01:00 committed by Anas Nashif
commit d80d47000b

View file

@ -189,7 +189,7 @@ struct pm_device {
*
* @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
#define Z_PM_DEVICE_DEFINE(node_id, dev_name, pm_action_cb)