aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorStefan Binding <[email protected]>2022-01-21 17:24:26 +0000
committerMark Brown <[email protected]>2022-02-01 16:09:04 +0000
commit113962301d2d9a5c11381d9c25ddea7af71be2ff (patch)
tree977b99fdc1e085a782658ada82a7b499915a169d /include/linux
parent92640f98a78c6a3ea1ca32143144241eceb129bd (diff)
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 <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'include/linux')
-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
/*