Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: adau1977-spi: Mark OF related data as maybe unused

The driver can be compile tested with !CONFIG_OF making certain data
unused:

sound/soc/codecs/adau1977-spi.c:58:34: error: ‘adau1977_spi_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230310214333.274903-6-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
a9048d64 d7d103d1

+1 -1
+1 -1
sound/soc/codecs/adau1977-spi.c
··· 55 55 }; 56 56 MODULE_DEVICE_TABLE(spi, adau1977_spi_ids); 57 57 58 - static const struct of_device_id adau1977_spi_of_match[] = { 58 + static const struct of_device_id adau1977_spi_of_match[] __maybe_unused = { 59 59 { .compatible = "adi,adau1977" }, 60 60 { .compatible = "adi,adau1978" }, 61 61 { .compatible = "adi,adau1979" },