From patchwork Sat Mar 11 17:32:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170933 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 098F3C61DA4 for ; Sat, 11 Mar 2023 17:34:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229998AbjCKReE (ORCPT ); Sat, 11 Mar 2023 12:34:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbjCKRdc (ORCPT ); Sat, 11 Mar 2023 12:33:32 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66F643D08D for ; Sat, 11 Mar 2023 09:33:22 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id cn21so2838209edb.0 for ; Sat, 11 Mar 2023 09:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pg+GPO/7EayVuamadIf0ZkJzvPVNrr6nqvGyotFYqJw=; b=QLGcp//9YW3Bk8OUHxNwnEQxTEzlQHE3td9NgmKco5B/m0ltJ6JzKJYZqWFEk5OOhc TgN4yl6NXi+7UGadNTCwZcT5F1eOPX0u8EIGOmUuEqvqo3VNBwildAwAelu/c0zPv5jG tL8qALW1Kh0MAkcwxjOHBT7E55h70Ih6OryxXmM5b1f3hhTQcRI0IrmlN7dMF5dxf6GN 24Rb0XmN6gxmEL2IaU/js2VrPSqXuqW18jLAZyEyGKdYqh/1JbUO4RMfaXMwikc1Bzhk AKgT/otoVDliGNadUn19zF00k5h7aJz7/J1qppKBAJvWn6cDLhfkFloaOdMPS3dSJVgP /rjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pg+GPO/7EayVuamadIf0ZkJzvPVNrr6nqvGyotFYqJw=; b=XK9NH+PxmnsE/YDhcvo7JK4KxIQPW5NBjHoD1UY4w5ZH/v9Uk2EtTHFYnzNbzO7KDY nxZczd7SRtnNJikkOsdBh8I+tzwEJdEnzo4JCef/5uMls2h4AS604HjaBtQQFtiaZBIm Tvf4oYxiH7jR+G0QsdVgaYL0EPN4jHzl84N5B3IoHTrhsXVHy2wb7H4WP0AIhQi4p7/H KlLqJ+FnwLysvtRYFclYvYMVrkVW7i2iuOxILvpGuvlRRHYrCYYGp66NEVjCrqk87Cg5 rVwP1KI+XReZ0Nch9Vt4VBY/kL0QVdNwN9ierGN6i+Pz+9qD+5luVwGeNsoYaKIkl7uc G9aw== X-Gm-Message-State: AO0yUKXZ7lTHUGnJ7xSHfXJA4khok4B8JahhgZaNQwVzFOLSodyyQ29z VsJ5pkgWvY1+hywH2eh9gS86zA== X-Google-Smtp-Source: AK7set91MVUsjkv0zNuDpkPHsBeGlGpHc2kPO4ylGklObjaz1d2qRxZ19w35NHimRz43HhRIx3AhHQ== X-Received: by 2002:aa7:d04e:0:b0:4fa:ee01:a0cb with SMTP id n14-20020aa7d04e000000b004faee01a0cbmr1425114edo.32.1678556001033; Sat, 11 Mar 2023 09:33:21 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:20 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 07/12] net: ieee802154: adf7242: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:32:58 +0100 Message-Id: <20230311173303.262618-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org The driver will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/net/ieee802154/adf7242.c:1322:34: error: ‘adf7242_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Acked-by: Michael Hennerich Acked-by: Miquel Raynal --- drivers/net/ieee802154/adf7242.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c index 5cf218c674a5..509acc86001c 100644 --- a/drivers/net/ieee802154/adf7242.c +++ b/drivers/net/ieee802154/adf7242.c @@ -1336,7 +1336,7 @@ MODULE_DEVICE_TABLE(spi, adf7242_device_id); static struct spi_driver adf7242_driver = { .id_table = adf7242_device_id, .driver = { - .of_match_table = of_match_ptr(adf7242_of_match), + .of_match_table = adf7242_of_match, .name = "adf7242", .owner = THIS_MODULE, },