aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 9d32000725da..b093405ed525 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * device.h - generic, centralized driver model 3 * device.h - generic, centralized driver model
3 * 4 *
@@ -5,8 +6,6 @@
5 * Copyright (c) 2004-2009 Greg Kroah-Hartman <gregkh@suse.de> 6 * Copyright (c) 2004-2009 Greg Kroah-Hartman <gregkh@suse.de>
6 * Copyright (c) 2008-2009 Novell Inc. 7 * Copyright (c) 2008-2009 Novell Inc.
7 * 8 *
8 * This file is released under the GPLv2
9 *
10 * See Documentation/driver-model/ for more information. 9 * See Documentation/driver-model/ for more information.
11 */ 10 */
12 11
@@ -21,7 +20,6 @@
21#include <linux/compiler.h> 20#include <linux/compiler.h>
22#include <linux/types.h> 21#include <linux/types.h>
23#include <linux/mutex.h> 22#include <linux/mutex.h>
24#include <linux/pinctrl/devinfo.h>
25#include <linux/pm.h> 23#include <linux/pm.h>
26#include <linux/atomic.h> 24#include <linux/atomic.h>
27#include <linux/ratelimit.h> 25#include <linux/ratelimit.h>
@@ -42,6 +40,7 @@ struct fwnode_handle;
42struct iommu_ops; 40struct iommu_ops;
43struct iommu_group; 41struct iommu_group;
44struct iommu_fwspec; 42struct iommu_fwspec;
43struct dev_pin_info;
45 44
46struct bus_attribute { 45struct bus_attribute {
47 struct attribute attr; 46 struct attribute attr;
@@ -288,6 +287,7 @@ struct device_driver {
288 const struct attribute_group **groups; 287 const struct attribute_group **groups;
289 288
290 const struct dev_pm_ops *pm; 289 const struct dev_pm_ops *pm;
290 int (*coredump) (struct device *dev);
291 291
292 struct driver_private *p; 292 struct driver_private *p;
293}; 293};
@@ -301,7 +301,6 @@ extern struct device_driver *driver_find(const char *name,
301extern int driver_probe_done(void); 301extern int driver_probe_done(void);
302extern void wait_for_device_probe(void); 302extern void wait_for_device_probe(void);
303 303
304
305/* sysfs interface for exporting driver attributes */ 304/* sysfs interface for exporting driver attributes */
306 305
307struct driver_attribute { 306struct driver_attribute {
@@ -575,6 +574,9 @@ ssize_t device_store_bool(struct device *dev, struct device_attribute *attr,
575 574
576#define DEVICE_ATTR(_name, _mode, _show, _store) \ 575#define DEVICE_ATTR(_name, _mode, _show, _store) \
577 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 576 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
577#define DEVICE_ATTR_PREALLOC(_name, _mode, _show, _store) \
578 struct device_attribute dev_attr_##_name = \
579 __ATTR_PREALLOC(_name, _mode, _show, _store)
578#define DEVICE_ATTR_RW(_name) \ 580#define DEVICE_ATTR_RW(_name) \
579 struct device_attribute dev_attr_##_name = __ATTR_RW(_name) 581 struct device_attribute dev_attr_##_name = __ATTR_RW(_name)
580#define DEVICE_ATTR_RO(_name) \ 582#define DEVICE_ATTR_RO(_name) \