]> 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 17:38:48 +0000 (17:38 +0000)
commit2b35ebc8c265f93c8c536d3be83546c8e932d056
treef7383247760b2b99705a15725a9cf590d9fd31d2
parent044eb32190a3077693301b3799aea345e1e2c9aa
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