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 5DD9AC6FD1C for ; Sat, 11 Mar 2023 17:34:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230286AbjCKReH (ORCPT ); Sat, 11 Mar 2023 12:34:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbjCKRdc (ORCPT ); Sat, 11 Mar 2023 12:33:32 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B388252B5 for ; Sat, 11 Mar 2023 09:33:21 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id j11so33034583edq.4 for ; Sat, 11 Mar 2023 09:33:21 -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=LdE8saqmH1LFD5/QvqK6tdgpY/1N3GqeDLndIUz1b5rQrqKyKzxvT15GH9+NDulUZI AxzqN8R5PIzYtSyaaTMe8dnwy5VV9Qqjja02m9L/dlN7qNpk8ZR/7K/q3Yk8jcOwF6kS ITPRw6zPIBMLPawPN20SOX3pavS0WTr+YdZG8RzPAhBum3qSC/elaHL7zCG60fDZF4EC 95tZz/E4DyqKniXBT1JQjCYRUsx+lVXl4pRSJIxsCzo8iAWmxAPtl1Q4SJgkKbzS9ZLx i5MyHg5BZ9xGpB/pypqwrrJvNd5V0M6nvr6lG93Wf0dapIYKO8bZ3oyQPaChY58gTRjT 4V4Q== X-Gm-Message-State: AO0yUKWbUTbLrflvDHo5PrPBMUYEu25edRXsukrrcwDO14DHblKcG0ew /KYTOW878P0NWqEIoqIhf8fnEg== 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- 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, }, -- 2.34.1