blob: 446f4f42b952894b3ffe1c2cb2cf91780e86ee33 [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
Jeff Garzikbca73e42005-11-13 16:06:25 -08007/*
8 * Register a device with power management
9 */
10struct pm_dev __deprecated *
11pm_register(pm_dev_t type, unsigned long id, pm_callback callback);
12
13/*
Jeff Garzikbca73e42005-11-13 16:06:25 -080014 * Send a request to all devices
15 */
16int __deprecated pm_send_all(pm_request_t rqst, void *data);
17
18#else /* CONFIG_PM_LEGACY */
19
Jeff Garzikbca73e42005-11-13 16:06:25 -080020static inline struct pm_dev *pm_register(pm_dev_t type,
21 unsigned long id,
22 pm_callback callback)
23{
24 return NULL;
25}
26
Jeff Garzikbca73e42005-11-13 16:06:25 -080027static inline int pm_send_all(pm_request_t rqst, void *data)
28{
29 return 0;
30}
31
32#endif /* CONFIG_PM_LEGACY */
33
34#endif /* __LINUX_PM_LEGACY_H__ */
35