diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-09 20:32:59 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-16 10:10:18 +0100 |
commit | cf901a1c5dd8df18d2308188d094a01e1e7c2143 (patch) | |
tree | 64325e250e97e8ca6ed7f8527ac55fd077abc8fe /drivers/base/base.h | |
parent | Merge 5.5-rc2 into driver-core-next (diff) | |
download | linux-cf901a1c5dd8df18d2308188d094a01e1e7c2143.tar.xz linux-cf901a1c5dd8df18d2308188d094a01e1e7c2143.zip |
device.h: move devtmpfs prototypes out of the file
The devtmpfs functions do not need to be in device.h as only the driver
core uses them, so move them to the private .h file for the driver core.
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Saravana Kannan <saravanak@google.com>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20191209193303.1694546-3-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r-- | drivers/base/base.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h index 80598b312940..40fb069a8a7e 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h @@ -186,3 +186,11 @@ extern void device_links_unbind_consumers(struct device *dev); /* device pm support */ void device_pm_move_to_tail(struct device *dev); + +#ifdef CONFIG_DEVTMPFS +int devtmpfs_create_node(struct device *dev); +int devtmpfs_delete_node(struct device *dev); +#else +static inline int devtmpfs_create_node(struct device *dev) { return 0; } +static inline int devtmpfs_delete_node(struct device *dev) { return 0; } +#endif |