driver core: Add fwnode_to_dev() to look up device from fwnode
authorSaravana Kannan <saravanak@google.com>
Wed, 4 Sep 2019 21:11:20 +0000 (14:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 15:29:50 +0000 (17:29 +0200)
commit372a67c0c5ef63f55bd1eb480d9555328d8ec0f2
tree1ff641b62d62fba319f596f65cf1c614b4e1b815
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
driver core: Add fwnode_to_dev() to look up device from fwnode

It's often useful to look up a device that corresponds to a fwnode. So
add an API to do that irrespective of the bus on which the device has
been added to.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20190904211126.47518-2-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
include/linux/fwnode.h