mirror of
https://github.com/frankcrawford/it87.git
synced 2025-07-23 03:43:02 +02:00
Updated for new PM macro usage
This commit is contained in:
15
compat.h
15
compat.h
@@ -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 */
|
||||
|
Reference in New Issue
Block a user