]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: Add dummy definitions for ACPI lookup functions
authorMark Brown <broonie@kernel.org>
Fri, 2 Aug 2024 20:53:04 +0000 (21:53 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 2 Aug 2024 20:53:04 +0000 (21:53 +0100)
commitd196c714a54c03c81e7b5dc972814f597bfb1fac
treec653275e1f5519d4ef18117ba48e82a7279b5575
parent0880f669436028c5499901e5acd8f4b4ea0e0c6a
parent90ec3a8a7fd0d43026fcca979713e077d4883b56
spi: Add dummy definitions for ACPI lookup functions

Merge series from Richard Fitzgerald <rf@opensource.cirrus.com>:

Provide empty versions of acpi_spi_count_resources(),
acpi_spi_device_alloc() and acpi_spi_find_controller_by_adev()
if the real functions are not being built.

This commit fixes two problems with the original definitions:

1) There wasn't an empty version of these functions
2) The #if only depended on CONFIG_ACPI. But the functions are implemented
   in the core spi.c so CONFIG_SPI_MASTER must also be enabled for the real
   functions to exist.