OSDN Git Service

nfc: st95hf: mark ACPI and OF device ID tables as maybe unused
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Fri, 28 May 2021 12:42:00 +0000 (08:42 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 May 2021 22:05:56 +0000 (15:05 -0700)
commit1ab4fe09977e9f32a6992072c648865fcd36b750
tree093266c17ffcaf4b9312eea117873f664ef1d0cd
parent80627802349242de2387a768475e2429e40e061c
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>
drivers/nfc/st95hf/core.c