Merge tag 'drm-intel-fixes-2014-02-11' of ssh://git.freedesktop.org/git/drm-intel...
[deliverable/linux.git] / include / linux / container.h
1 /*
2 * Definitions for container bus type.
3 *
4 * Copyright (C) 2013, Intel Corporation
5 * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12 #include <linux/device.h>
13
14 /* drivers/base/power/container.c */
15 extern struct bus_type container_subsys;
16
17 struct container_dev {
18 struct device dev;
19 int (*offline)(struct container_dev *cdev);
20 };
21
22 static inline struct container_dev *to_container_dev(struct device *dev)
23 {
24 return container_of(dev, struct container_dev, dev);
25 }
This page took 0.031424 seconds and 6 git commands to generate.