]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drivers: Introduce device lookup variants by fwnode
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 23 Jul 2019 22:18:34 +0000 (23:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Jul 2019 11:07:42 +0000 (13:07 +0200)
commit67843bbaf36eb087714f40e783ee78e99e9e4b86
treecd2b2839bd3510dfd05d2185346a57988fb93c8a
parentcfba5de9b99f8bbb8b4ea11b3049784e78b8759b
drivers: Introduce device lookup variants by fwnode

Add a helper to match the firmware node handle of a device and provide
wrappers for {bus/class/driver}_find_device() APIs to avoid proliferation
of duplicate custom match functions.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Doug Ledford <dledford@redhat.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: linux-usb@vger.kernel.org
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Joe Perches <joe@perches.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Joerg Roedel <joro@8bytes.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20190723221838.12024-4-suzuki.poulose@arm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 files changed:
drivers/base/core.c
drivers/base/devcon.c
drivers/hwtracing/coresight/coresight-platform.c
drivers/hwtracing/coresight/coresight-priv.h
drivers/hwtracing/coresight/coresight.c
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/iommu/arm-smmu-v3.c
drivers/iommu/arm-smmu.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c
drivers/usb/roles/class.c
drivers/usb/typec/class.c
include/linux/device.h