diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2019-09-05 05:40:54 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-09-05 05:40:54 -0400 |
commit | 151a41014bff92f353263cadc051435dc9c3258e (patch) | |
tree | aa082a0745edd5b7051668f455dfc0ee1e4a9de0 /include/linux/device.h | |
parent | ae0755b56da9db4190288155ea884331993ed51b (diff) | |
parent | 089cf7f6ecb266b6a4164919a2e69bd2f938374a (diff) |
Merge tag 'v5.3-rc7' into devel
Linux 5.3-rc7
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index c330b75c6c57..6717adee33f0 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -915,6 +915,8 @@ struct dev_links_info { | |||
915 | * This identifies the device type and carries type-specific | 915 | * This identifies the device type and carries type-specific |
916 | * information. | 916 | * information. |
917 | * @mutex: Mutex to synchronize calls to its driver. | 917 | * @mutex: Mutex to synchronize calls to its driver. |
918 | * @lockdep_mutex: An optional debug lock that a subsystem can use as a | ||
919 | * peer lock to gain localized lockdep coverage of the device_lock. | ||
918 | * @bus: Type of bus device is on. | 920 | * @bus: Type of bus device is on. |
919 | * @driver: Which driver has allocated this | 921 | * @driver: Which driver has allocated this |
920 | * @platform_data: Platform data specific to the device. | 922 | * @platform_data: Platform data specific to the device. |
@@ -998,6 +1000,9 @@ struct device { | |||
998 | core doesn't touch it */ | 1000 | core doesn't touch it */ |
999 | void *driver_data; /* Driver data, set and get with | 1001 | void *driver_data; /* Driver data, set and get with |
1000 | dev_set_drvdata/dev_get_drvdata */ | 1002 | dev_set_drvdata/dev_get_drvdata */ |
1003 | #ifdef CONFIG_PROVE_LOCKING | ||
1004 | struct mutex lockdep_mutex; | ||
1005 | #endif | ||
1001 | struct mutex mutex; /* mutex to synchronize calls to | 1006 | struct mutex mutex; /* mutex to synchronize calls to |
1002 | * its driver. | 1007 | * its driver. |
1003 | */ | 1008 | */ |
@@ -1383,6 +1388,7 @@ extern int (*platform_notify_remove)(struct device *dev); | |||
1383 | */ | 1388 | */ |
1384 | extern struct device *get_device(struct device *dev); | 1389 | extern struct device *get_device(struct device *dev); |
1385 | extern void put_device(struct device *dev); | 1390 | extern void put_device(struct device *dev); |
1391 | extern bool kill_device(struct device *dev); | ||
1386 | 1392 | ||
1387 | #ifdef CONFIG_DEVTMPFS | 1393 | #ifdef CONFIG_DEVTMPFS |
1388 | extern int devtmpfs_create_node(struct device *dev); | 1394 | extern int devtmpfs_create_node(struct device *dev); |