Updated for new PM macro usage

This commit is contained in:
Frank Crawford
2022-10-08 15:09:59 +11:00
parent 8dcaed9f4e
commit d3dca324a4

View File

@@ -72,4 +72,19 @@ u8 vid_which_vrm(void)
#define kobj_to_dev(kobj) container_of(kobj, struct device, kobj)
#endif
#ifndef DEFINE_SIMPLE_DEV_PM_OPS
/*
* New API in 5.17
*/
#define DEFINE_SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn)
static void __maybe_unused it87_resume_sio(struct platform_device *pdev);
static int __maybe_unused it87_resume(struct device *dev);
#endif
#ifndef pm_sleep_ptr
#define pm_sleep_ptr(_ptr) _ptr
#endif
#endif /* COMPAT_H */