LinuxKPI: pm.h add pm_sleep_ptr and DEFINE_SIMPLE_DEV_PM_OPS
authorBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 28 Nov 2022 22:31:28 +0000 (22:31 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 31 Dec 2022 02:51:09 +0000 (02:51 +0000)
commit4052b0e4b218f916b1f491a5ec9e41d38029215b
treecefbfede34046667983b795ab6b9d1d21c9d3d54
parent55038a6306a570c9f2df89f5ad076de0f7d98152
LinuxKPI: pm.h add pm_sleep_ptr and DEFINE_SIMPLE_DEV_PM_OPS

Extend pm.h by pm_sleep_ptr and DEFINE_SIMPLE_DEV_PM_OPS().
For the moment this duplicates some parts (as can be seen in the earlier
review I tried to simplify bits but given our implementation this
was easier in the end).

While here and cleanup the SIMPLE_DEV_PM_OPS() bits (white-space only).

MFC after: 3 days
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D37527
sys/compat/linuxkpi/common/include/linux/pm.h