]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: Export acpi_spi_find_controller_by_adev()
authorHans de Goede <hdegoede@redhat.com>
Sat, 14 Oct 2023 20:53:11 +0000 (22:53 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 16 Oct 2023 15:08:39 +0000 (16:08 +0100)
commita8ecbc54165fca767e75a82372a7be3810c667cf
treee71824e0fbf9c875c90f543e083d09d27beef466
parentf6d7f050e258e3c71e310f5167c4d65bbefaeb31
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>
drivers/spi/spi.c
include/linux/spi/spi.h