printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / container.h
blobdd00cc918a926e862d887869acaf9c6fc723a76b
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Definitions for container bus type.
5 * Copyright (C) 2013, Intel Corporation
6 * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
7 */
9 #ifndef _LINUX_CONTAINER_H
10 #define _LINUX_CONTAINER_H
12 #include <linux/device.h>
14 /* drivers/base/power/container.c */
15 extern const 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);
27 #endif /* _LINUX_CONTAINER_H */