[PATCH 6.17 065/371] PM: core: Add two macros for walking device links