blob: 514729a446888e21dee4289db2ea4e71f80f6eaa [file] [log] [blame]
Jeff Garzikbca73e42005-11-13 16:06:25 -08001#ifndef __LINUX_PM_LEGACY_H__
2#define __LINUX_PM_LEGACY_H__
3
Jeff Garzikbca73e42005-11-13 16:06:25 -08004
5#ifdef CONFIG_PM_LEGACY
6
7extern int pm_active;
8
9#define PM_IS_ACTIVE() (pm_active != 0)
10
11/*
12 * Register a device with power management
13 */
14struct pm_dev __deprecated *
15pm_register(pm_dev_t type, unsigned long id, pm_callback callback);
16
17/*
Jeff Garzikbca73e42005-11-13 16:06:25 -080018 * Send a request to all devices
19 */
20int __deprecated pm_send_all(pm_request_t rqst, void *data);
21
22#else /* CONFIG_PM_LEGACY */
23
24#define PM_IS_ACTIVE() 0
25
26static inline struct pm_dev *pm_register(pm_dev_t type,
27 unsigned long id,
28 pm_callback callback)
29{
30 return NULL;
31}
32
Jeff Garzikbca73e42005-11-13 16:06:25 -080033static inline int pm_send_all(pm_request_t rqst, void *data)
34{
35 return 0;
36}
37
38#endif /* CONFIG_PM_LEGACY */
39
40#endif /* __LINUX_PM_LEGACY_H__ */
41