Merge tag 'spi-fix-v4.19-rc4' of https://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6/btrfs-unstable.git] / include / linux / container.h
blob3c03e6fd2035b8b19733e8d6b03c3f0fed1b280a
1 /*
2 * Definitions for container bus type.
4 * Copyright (C) 2013, Intel Corporation
5 * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
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.
12 #include <linux/device.h>
14 /* drivers/base/power/container.c */
15 extern struct bus_type container_subsys;
17 struct container_dev {
18 struct device dev;
19 int (*offline)(struct container_dev *cdev);
22 static inline struct container_dev *to_container_dev(struct device *dev)
24 return container_of(dev, struct container_dev, dev);