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.
9 #ifndef _LINUX_PM_LINK_H
10 #define _LINUX_PM_LINK_H
12 #include <linux/list.h>
17 struct device
*master
;
18 struct list_head master_hook
;
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
));