driver core: Add device_is_dependent() to linux/device.h
authorSaravana Kannan <saravanak@google.com>
Wed, 10 Jun 2020 01:19:33 +0000 (18:19 -0700)
committerRob Herring <robh@kernel.org>
Wed, 17 Jun 2020 22:10:56 +0000 (16:10 -0600)
commit7d34ca3854845398cb36866d14bbdc43dcec1ad0
treece115e9517285fcbe2086b0c09e3fbcc2c0a6ea1
parent418370ff2231b7db5abf59b8faec911e6fc44d96
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>
drivers/base/core.c
include/linux/device.h