]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/nfc/st-nci/spi.c
nfc: st-nci: mark ACPI and OF device ID tables as maybe unused
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Fri, 28 May 2021 12:41:58 +0000 (08:41 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 May 2021 22:05:56 +0000 (15:05 -0700)
commit255fcc7b71666bd3275ac0a4476e91d175ac9223
tree15c166eb72245d4c5b3cc03bb2647a6925b470a6
parentaa1405772fe13f4ec74d50610facd3fb7f6d998d
nfc: st-nci: 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/st-nci/spi.c:296:34: warning:
        ‘of_st_nci_spi_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-10-krzysztof.kozlowski@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/nfc/st-nci/i2c.c
drivers/nfc/st-nci/spi.c