From: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
linux-nfc@lists.01.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 02/12] nfc: fdp: drop ACPI_PTR from device ID table
Date: Fri, 28 May 2021 08:41:50 -0400 [thread overview]
Message-ID: <20210528124200.79655-2-krzysztof.kozlowski@canonical.com> (raw)
In-Reply-To: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com>
The driver can match only via the ACPI ID table so the table should be
always used and the ACPI_PTR does not have any sense. This fixes fixes
compile warning (!CONFIG_ACPI):
drivers/nfc/fdp/i2c.c:362:36: warning:
‘fdp_nci_i2c_acpi_match’ defined but not used [-Wunused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
drivers/nfc/fdp/i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nfc/fdp/i2c.c b/drivers/nfc/fdp/i2c.c
index adaa1a7147f9..997e0806821a 100644
--- a/drivers/nfc/fdp/i2c.c
+++ b/drivers/nfc/fdp/i2c.c
@@ -368,7 +368,7 @@ MODULE_DEVICE_TABLE(acpi, fdp_nci_i2c_acpi_match);
static struct i2c_driver fdp_nci_i2c_driver = {
.driver = {
.name = FDP_I2C_DRIVER_NAME,
- .acpi_match_table = ACPI_PTR(fdp_nci_i2c_acpi_match),
+ .acpi_match_table = fdp_nci_i2c_acpi_match,
},
.probe_new = fdp_nci_i2c_probe,
.remove = fdp_nci_i2c_remove,
--
2.27.0
next prev parent reply other threads:[~2021-05-28 12:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-28 12:41 [PATCH 01/12] nfc: fdp: correct kerneldoc for structure Krzysztof Kozlowski
2021-05-28 12:41 ` Krzysztof Kozlowski [this message]
2021-05-28 12:41 ` [PATCH 03/12] nfc: port100: " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 04/12] nfc: pn533: drop of_match_ptr from device ID table Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 05/12] nfc: mrvl: mark OF device ID tables as maybe unused Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 06/12] nfc: mrvl: skip impossible NCI_MAX_PAYLOAD_SIZE check Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 07/12] nfc: pn533: mark OF device ID tables as maybe unused Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 08/12] nfc: s3fwrn5: " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 09/12] nfc: pn544: mark ACPI and " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 10/12] nfc: st-nci: " Krzysztof Kozlowski
2021-05-28 12:41 ` [PATCH 11/12] nfc: st21nfca: " Krzysztof Kozlowski
2021-05-28 12:42 ` [PATCH 12/12] nfc: st95hf: " Krzysztof Kozlowski
2021-05-28 22:20 ` [PATCH 01/12] nfc: fdp: correct kerneldoc for structure patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210528124200.79655-2-krzysztof.kozlowski@canonical.com \
--to=krzysztof.kozlowski@canonical.com \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfc@lists.01.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).