summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-10-14 22:53:11 +0200
committerMark Brown <broonie@kernel.org>2023-10-16 16:08:39 +0100
commita8ecbc54165fca767e75a82372a7be3810c667cf (patch)
treee71824e0fbf9c875c90f543e083d09d27beef466 /include/linux/spi
parentf6d7f050e258e3c71e310f5167c4d65bbefaeb31 (diff)
downloadlinux-a8ecbc54165fca767e75a82372a7be3810c667cf.tar.gz
linux-a8ecbc54165fca767e75a82372a7be3810c667cf.tar.bz2
linux-a8ecbc54165fca767e75a82372a7be3810c667cf.zip
spi: Export acpi_spi_find_controller_by_adev()
Export acpi_spi_find_controller_by_adev() so that ACPI glue code which wants to dynamically create a spi_device using acpi_spi_device_alloc() or spi_new_device() on a controller, to which the code does not already have a reference, can find the controller. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20231014205314.59333-2-hdegoede@redhat.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/spi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index 487da1f6e4b7..86825c88b576 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -867,6 +867,7 @@ extern int devm_spi_register_controller(struct device *dev,
extern void spi_unregister_controller(struct spi_controller *ctlr);
#if IS_ENABLED(CONFIG_ACPI)
+extern struct spi_controller *acpi_spi_find_controller_by_adev(struct acpi_device *adev);
extern struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr,
struct acpi_device *adev,
int index);