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 16:09:03 +0000 (16:09 +0000)
commit92640f98a78c6a3ea1ca32143144241eceb129bd
tree1589094f21b7ecf7ad15447e830079447fd8621a
parent70dd264bc07aee4f89e65138db11e908701388dd
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