]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge tag 'spi-acpi-lookup-dummy' of https://git.kernel.org/pub/scm/linux/kernel...
authorTakashi Iwai <tiwai@suse.de>
Mon, 12 Aug 2024 07:15:01 +0000 (09:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Aug 2024 07:15:01 +0000 (09:15 +0200)
commit9219b179bab20563c43aee0c195e1e9304a9deed
tree5edc346cb3ec1c2cb0149fd3a5b0d4840ac059c9
parent7c626ce4bae1ac14f60076d00eafe71af30450ba
parent90ec3a8a7fd0d43026fcca979713e077d4883b56
Merge tag 'spi-acpi-lookup-dummy' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi into topic/cirrus-hp-g12

spi: Add empty versions of ACPI lookup functions

A patch from Richard Fitzgerald adding dummy versions of the ACPI lookup
functions for SPI:

    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.