aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/slimbus.h
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2018-06-19 17:12:57 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-07 17:24:32 +0200
commite0772de8a48b69d39624cdf99fac8f4a3fcc387b (patch)
tree9676bcab57646f829e76bbb038998587677eaf52 /include/linux/slimbus.h
parentslimbus: qcom: remove redundant depends in Kconfig (diff)
downloadlinux-dev-e0772de8a48b69d39624cdf99fac8f4a3fcc387b.tar.xz
linux-dev-e0772de8a48b69d39624cdf99fac8f4a3fcc387b.zip
slimbus: core: add of_slim_device_get() helper
On SLIMBus controllers like Qcom NGD(non ported device), controller can request logical address once the remote side is powered, having a helper function like this to explicitly enumerate the bus is helpful. Also codec drivers which are taking to interface device would need such a helper too. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/slimbus.h')
-rw-r--r--include/linux/slimbus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/slimbus.h b/include/linux/slimbus.h
index c36cf121d2cd..efa36a852dc3 100644
--- a/include/linux/slimbus.h
+++ b/include/linux/slimbus.h
@@ -138,6 +138,8 @@ static inline void slim_set_devicedata(struct slim_device *dev, void *data)
dev_set_drvdata(&dev->dev, data);
}
+struct slim_device *of_slim_get_device(struct slim_controller *ctrl,
+ struct device_node *np);
struct slim_device *slim_get_device(struct slim_controller *ctrl,
struct slim_eaddr *e_addr);
int slim_get_logical_addr(struct slim_device *sbdev);