diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 10 |
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; | |||
42 | struct iommu_ops; | 40 | struct iommu_ops; |
43 | struct iommu_group; | 41 | struct iommu_group; |
44 | struct iommu_fwspec; | 42 | struct iommu_fwspec; |
43 | struct dev_pin_info; | ||
45 | 44 | ||
46 | struct bus_attribute { | 45 | struct 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, | |||
301 | extern int driver_probe_done(void); | 301 | extern int driver_probe_done(void); |
302 | extern void wait_for_device_probe(void); | 302 | extern 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 | ||
307 | struct driver_attribute { | 306 | struct 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) \ |