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: pcm179x-spi: Mark OF related data as maybe unused

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

sound/soc/codecs/pcm179x-spi.c:32:34: error: ‘pcm179x_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-7-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
413beba1 a9048d64

+1 -1
+1 -1
sound/soc/codecs/pcm179x-spi.c
··· 29 29 return pcm179x_common_init(&spi->dev, regmap); 30 30 } 31 31 32 - static const struct of_device_id pcm179x_of_match[] = { 32 + static const struct of_device_id pcm179x_of_match[] __maybe_unused = { 33 33 { .compatible = "ti,pcm1792a", }, 34 34 { } 35 35 };