diff options
author | Saravana Kannan <saravanak@google.com> | 2020-06-09 18:19:33 -0700 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-06-17 16:10:56 -0600 |
commit | 7d34ca3854845398cb36866d14bbdc43dcec1ad0 (patch) | |
tree | ce115e9517285fcbe2086b0c09e3fbcc2c0a6ea1 /include/linux/device.h | |
parent | 418370ff2231b7db5abf59b8faec911e6fc44d96 (diff) |
driver core: Add device_is_dependent() to linux/device.h
DT implementation of fw_devlink needs this function to detect cycles. So
make it available.
Signed-off-by: Saravana Kannan <saravanak@google.com>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 15460a5ac024..33cece5d9a4c 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -829,6 +829,7 @@ extern int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid); extern const char *device_get_devnode(struct device *dev, umode_t *mode, kuid_t *uid, kgid_t *gid, const char **tmp); +extern int device_is_dependent(struct device *dev, void *target); static inline bool device_supports_offline(struct device *dev) { |