mm-only debug patch...
[mmotm.git] / include / linux / pm_link.h
blob539f8e1ed62d7aaf9bf142970c6b6558fc727527
1 /*
2 * include/linux/pm_link.h - PM links manipulation core.
4 * Copyright (c) 2009 Rafael J. Wysocki <rjw@sisk.pl>, Novell Inc.
6 * This file is released under the GPLv2.
7 */
9 #ifndef _LINUX_PM_LINK_H
10 #define _LINUX_PM_LINK_H
12 #include <linux/list.h>
14 struct device;
16 struct pm_link {
17 struct device *master;
18 struct list_head master_hook;
19 struct device *slave;
20 struct list_head slave_hook;
23 extern int pm_link_add(struct device *slave, struct device *master);
24 extern void pm_link_remove(struct device *dev, struct device *master);
25 extern int device_for_each_master(struct device *slave, void *data,
26 int (*fn)(struct device *dev, void *data));
27 extern int device_for_each_slave(struct device *master, void *data,
28 int (*fn)(struct device *dev, void *data));
30 #endif