diff options
| author | Stefan Binding <sbinding@opensource.cirrus.com> | 2022-01-21 20:24:25 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2022-02-01 19:09:03 +0300 |
| commit | 92640f98a78c6a3ea1ca32143144241eceb129bd (patch) | |
| tree | 1589094f21b7ecf7ad15447e830079447fd8621a /include | |
| parent | 70dd264bc07aee4f89e65138db11e908701388dd (diff) | |
| download | linux-92640f98a78c6a3ea1ca32143144241eceb129bd.tar.xz | |
spi: Support selection of the index of the ACPI Spi Resource before alloc
If a node contains more than one SPI resource it may be necessary to
use an index to select which one you want to allocate a spi device for.
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-4-sbinding@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/spi/spi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index d159cef12f1a..e5bbb9cbd3d7 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -762,7 +762,8 @@ extern void spi_unregister_controller(struct spi_controller *ctlr); #if IS_ENABLED(CONFIG_ACPI) extern struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr, - struct acpi_device *adev); + struct acpi_device *adev, + int index); #endif /* |
