spi: Support selection of the index of the ACPI Spi Resource before alloc
authorStefan Binding <sbinding@opensource.cirrus.com>
Fri, 21 Jan 2022 17:24:25 +0000 (17:24 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 1 Feb 2022 17:38:47 +0000 (17:38 +0000)
commit87e59b36e5e26122efd55d77adb9fac827987db0
tree0dd2b20b43f43c6c101fe1650b657d0b8fb29053
parent000bee0ed70af79e610444096fb453430220960f
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>
drivers/spi/spi.c
include/linux/spi/spi.h