summaryrefslogtreecommitdiff
path: root/include/linux/spi/spi.h
diff options
context:
space:
mode:
authorStefan Binding <sbinding@opensource.cirrus.com>2022-01-21 17:24:26 +0000
committerMark Brown <broonie@kernel.org>2022-02-01 17:38:48 +0000
commite612af7acef2459f1afd885f4107748995a05963 (patch)
treef7383247760b2b99705a15725a9cf590d9fd31d2 /include/linux/spi/spi.h
parent87e59b36e5e26122efd55d77adb9fac827987db0 (diff)
downloadlwn-e612af7acef2459f1afd885f4107748995a05963.tar.gz
lwn-e612af7acef2459f1afd885f4107748995a05963.zip
spi: Add API to count spi acpi resources
Some ACPI nodes may have more than one Spi Resource. To be able to handle these case, its necessary to have a way of counting these resources. Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20220121172431.6876-5-sbinding@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/spi/spi.h')
-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 e5bbb9cbd3d7..394b4241d989 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -764,6 +764,7 @@ extern void spi_unregister_controller(struct spi_controller *ctlr);
extern struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr,
struct acpi_device *adev,
int index);
+int acpi_spi_count_resources(struct acpi_device *adev);
#endif
/*