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 20:38:47 +0300 |
commit | 87e59b36e5e26122efd55d77adb9fac827987db0 (patch) | |
tree | 0dd2b20b43f43c6c101fe1650b657d0b8fb29053 /include/linux/spi | |
parent | 000bee0ed70af79e610444096fb453430220960f (diff) | |
download | linux-87e59b36e5e26122efd55d77adb9fac827987db0.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/linux/spi')
-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 /* |