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 C1252C61DA4 for ; Sat, 11 Mar 2023 17:33:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbjCKRds (ORCPT ); Sat, 11 Mar 2023 12:33:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbjCKRdb (ORCPT ); Sat, 11 Mar 2023 12:33:31 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3747537540 for ; Sat, 11 Mar 2023 09:33:21 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id g10so4158421eda.1 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=1678555999; 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=aXAmespG0M4hSiMCAu+5SVl3Gjs1X4fJ7l5m653N/T0=; b=h61OLmcgQZ49pdiaT/hMry9cHAP5irMaU8H2HF8mKrR8UcaTmYxRuNVscBm/7KcSZu iP9KwtjEe/2vbYH65cQWESLAptBhLAUdvgrrnES77GxdAbGIl5U8Y42eB7/y5s0Y4hSW mvj2c5nj9V8PzeMXsaLMCCoHABuAcjtkN819POzZEPr+rR7S8TsvpLjpWnMrFDmyd+07 zlHWo/ouD5nf+6zfOSrQZ/GtUKPYMy0P/kUdaSLuRSQ//1hJXQ5IB9UXMKMX7HkTlnPd f99sqAPHOzCY4JSVlYAuscS6WSHfBCE4nLApyI6xWtqW7DobA7r9aMRVSOmlM102ttVK NBnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556000; 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=aXAmespG0M4hSiMCAu+5SVl3Gjs1X4fJ7l5m653N/T0=; b=zIKwB7rN6BK2o6ntqb63YKLfD9K/AbtE8qSUmQcVikPMMz3jTR19wIspyJlY8e7SRH HU62w7j6XPdz5qyZb9xr9ier3VjNTDgg2EKqXpLqNjOi3F/5oS/PH+lCgrrORmlAh9sL E6QlYms2Vt91RaMgBbuCS4cbwOU5Rvw5d4BdmndfWyJ8cONSyqrZ/M4//VtW/n3Jqbgb FNYYcaqJZRJQX4qVtESEKxajpfauZ+BtEAX1M1qGVpG7RHRBrujOaJbPjkQr6rTsZvQg foiXObvL+x4SWqo29jFpzjp9D7YvOyYrC7aYPMwboCoI2NFeQw5lUBEB8REDMvUIrSKF 3iAQ== X-Gm-Message-State: AO0yUKUEC1XoZgr9Kukq/CKvbGwsKe9fa/IQgdAnCd7Xb1EiGf+Axf5P rAm5d/HqtoNI2F6x6raguhcnEw== X-Google-Smtp-Source: AK7set/kpZ2vdN8HmJ3eoEZdciC1xrNdRT0XaUll+kYhR/pDJF4w7J+TuEaXTUmUIJfY2jOSfMh2Gg== X-Received: by 2002:a05:6402:542:b0:4af:8436:2f5d with SMTP id i2-20020a056402054200b004af84362f5dmr25453512edx.40.1678555999770; Sat, 11 Mar 2023 09:33:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:19 -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 06/12] net: phy: ks8995: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:32:57 +0100 Message-Id: <20230311173303.262618-6-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/phy/spi_ks8995.c:156:34: error: ‘ks8895_spi_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/net/phy/spi_ks8995.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c index d4202d40d47a..7196e927c2cd 100644 --- a/drivers/net/phy/spi_ks8995.c +++ b/drivers/net/phy/spi_ks8995.c @@ -491,7 +491,7 @@ static void ks8995_remove(struct spi_device *spi) static struct spi_driver ks8995_driver = { .driver = { .name = "spi-ks8995", - .of_match_table = of_match_ptr(ks8895_spi_of_match), + .of_match_table = ks8895_spi_of_match, }, .probe = ks8995_probe, .remove = ks8995_remove, -- 2.34.1