From patchwork Fri May 28 12:41:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12286983 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82BAAC4708D for ; Fri, 28 May 2021 12:42:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 65097613E6 for ; Fri, 28 May 2021 12:42:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235854AbhE1Mns (ORCPT ); Fri, 28 May 2021 08:43:48 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:42493 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235523AbhE1Mnr (ORCPT ); Fri, 28 May 2021 08:43:47 -0400 Received: from mail-vs1-f69.google.com ([209.85.217.69]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lmboZ-0007xK-M7 for netdev@vger.kernel.org; Fri, 28 May 2021 12:42:11 +0000 Received: by mail-vs1-f69.google.com with SMTP id m15-20020a05610206cfb0290248aedd0e0dso944737vsg.16 for ; Fri, 28 May 2021 05:42:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=c5PhAYJAgpgGf/ki2oqzdzivSFW2QLSW3v25wv1mU4g=; b=IxjNJQXXteWWwOoME2V1CWI95lunaI6iZENmzkMIAfug/OBf7oCNaFYqhvV6bq8SSY X/IHaJnk6wg31+CYT4YQV3C633PZ6hjulyy0x9IWwfWCcxZt8mG/lEEorbTLsM5jzagE VGUnmniS1+i7798dBp3GjcgafML5NswYc2H9fQeHiKv/964yD/OP33orGa1m42gYJgHP e/404BfRYRQNOO0IhLlN6yzR+Asa5G/X/dzmggslFXnXAKpo/Vpr/hhqwNWC4tuLukwV i+P/cR353Dzg1ZeDsJFHwtgZr5l2jT7GZf9HeHl1Ask39A+/YsVzDAziOUbaQOryGsbx 3wwQ== X-Gm-Message-State: AOAM5303AcDxP0BgWy2ZqOWQBbs/gDxBQoc2U/bWp84BSmTU+Nh35Peo DjcPOUnaqLdOf2ZRN/iS1kEiGrXh+RLz2PedUNyQpn+dnTvTSnv/uQCfFXahx+8O4ElKYiN7Wsq BUHBf25XlupCTQosEFiVvgIof+hLVU4JXTg== X-Received: by 2002:ac5:c3ca:: with SMTP id t10mr1383168vkk.11.1622205730296; Fri, 28 May 2021 05:42:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAguSr2J93TSQQJDG3VnDliTUMEJaVy45IiQ+G+QWSSRLr762rLfLwGPi5FoNLdafPbJYLgw== X-Received: by 2002:ac5:c3ca:: with SMTP id t10mr1383136vkk.11.1622205730053; Fri, 28 May 2021 05:42:10 -0700 (PDT) Received: from localhost.localdomain ([45.237.48.6]) by smtp.gmail.com with ESMTPSA id b35sm782328uae.20.2021.05.28.05.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 05:42:09 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , "David S. Miller" , Jakub Kicinski , 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 Message-Id: <20210528124200.79655-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com> References: <20210528124200.79655-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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 --- 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,