aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nfc/st95hf
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-05-28 08:42:00 -0400
committerJakub Kicinski <kuba@kernel.org>2021-05-28 15:05:56 -0700
commit1ab4fe09977e9f32a6992072c648865fcd36b750 (patch)
tree093266c17ffcaf4b9312eea117873f664ef1d0cd /drivers/nfc/st95hf
parentnfc: st21nfca: mark ACPI and OF device ID tables as maybe unused (diff)
downloadlinux-dev-1ab4fe09977e9f32a6992072c648865fcd36b750.tar.xz
linux-dev-1ab4fe09977e9f32a6992072c648865fcd36b750.zip
nfc: st95hf: mark ACPI and OF device ID tables as maybe unused
The driver can match either via OF or ACPI ID tables. If one configuration is disabled, the table will be unused: drivers/nfc/st95hf/core.c:1059:34: warning: ‘st95hf_spi_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Link: https://lore.kernel.org/r/20210528124200.79655-12-krzysztof.kozlowski@canonical.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/nfc/st95hf')
-rw-r--r--drivers/nfc/st95hf/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c
index 88924be8decb..0d99181b6ce3 100644
--- a/drivers/nfc/st95hf/core.c
+++ b/drivers/nfc/st95hf/core.c
@@ -1056,7 +1056,7 @@ static const struct spi_device_id st95hf_id[] = {
};
MODULE_DEVICE_TABLE(spi, st95hf_id);
-static const struct of_device_id st95hf_spi_of_match[] = {
+static const struct of_device_id st95hf_spi_of_match[] __maybe_unused = {
{ .compatible = "st,st95hf" },
{ },
};