]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Add API to count spi acpi resources
authorStefan Binding <sbinding@opensource.cirrus.com>
Fri, 21 Jan 2022 17:24:26 +0000 (17:24 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 1 Feb 2022 16:09:04 +0000 (16:09 +0000)
commit7abdd13b90327ca2120f4c9c93340f70089c8bc9
tree977b99fdc1e085a782658ada82a7b499915a169d
parentd9242fd5acc2180343956a00b10daf369ee64e12
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 <sbinding@opensource.cirrus.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220121172431.6876-5-sbinding@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c
include/linux/spi/spi.h