From: Mark Brown Date: Fri, 2 Aug 2024 20:53:04 +0000 (+0100) Subject: spi: Add dummy definitions for ACPI lookup functions X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d196c714a54c03c81e7b5dc972814f597bfb1fac;p=users%2Fdwmw2%2Flinux.git spi: Add dummy definitions for ACPI lookup functions Merge series from Richard Fitzgerald : 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. --- d196c714a54c03c81e7b5dc972814f597bfb1fac