1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Definitions for container bus type.
5 * Copyright (C) 2013, Intel Corporation
9 #include <linux/device.h>
11 /* drivers/base/power/container.c */
12 extern struct bus_type container_subsys;
14 struct container_dev {
16 int (*offline)(struct container_dev *cdev);
19 static inline struct container_dev *to_container_dev(struct device *dev)
21 return container_of(dev, struct container_dev, dev);