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 DC2C7C6FA99 for ; Sun, 12 Mar 2023 13:17:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229861AbjCLNRa (ORCPT ); Sun, 12 Mar 2023 09:17:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230284AbjCLNRG (ORCPT ); Sun, 12 Mar 2023 09:17:06 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DECF53DB4 for ; Sun, 12 Mar 2023 06:16:02 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id cn21so8324012edb.0 for ; Sun, 12 Mar 2023 06:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678626918; 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=nxOh2EN/qJCdB/AUoID7+RycsW+5mphdpysdI7Ju3Hg=; b=uyIkIno1RN+oNCDBVDI0qsGT2okSndTeXGTJcQFzXyprV1Rpjb734SmAziDONXGxEq KxPaUDhQJdZmOJPQ+kCwf1xmi38HS3pahM3FEvMiB/oqg41XBwD+fMzzqxSAPeb0dRJR Wh9pheSoCgsp8yknhNxTLubOA7/8HH8Nw1PjeVR22eY//P8Ea9eVHc+oc3a/NTRv69CQ iQyZuovlYjLABvFCfrdPYM1mAsKWLjgHkPDvpMjwW8Kb2CdkS8TRffHnpK/w9H/5fRY8 BA/vZLPWwj2UxlMNQTmhYezIePKPThEC7pO/8SDa7b+Ok+fCXy/c7JqXwQWCMm95bJUt /Czw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678626918; 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=nxOh2EN/qJCdB/AUoID7+RycsW+5mphdpysdI7Ju3Hg=; b=ZfcKlXss3yW+BOqAfZO0O/lvFbnkh+SIFQtojsx8rhvclduClhU5vXiyWIwwP7yn/h dS7oPzt32bTw9WuuTZTsNVUT5mjg5OqnKvvVUwNoBnccxDDgldykVEWgNiK3+fyMt8zj lfJ30A0hnfqkx3ML56eRUWP8gvDnYk8ePKn2tR3TJ1tSQTUW12qkcRXjDUTXZLrhbTJv kE1m0iYuvVCk5zj/ll7rnB5hrpURBHFKIxi7PfAh7tqCdx/yAc4Z4OTq4MZjpC9kDv7b ESgKchlhOa5OvLacTUq/0LkPKqx64Dw1b0lgfjx55qDexhmqSfRwmh3s6PCWIHTxXl/0 o8dw== X-Gm-Message-State: AO0yUKU5cN8eidbLELepTE5huClSHKgYe4fa5z8pRgQqSmu35mlP6385 866+igoY/iu6PS+gRniI+BBXng== X-Google-Smtp-Source: AK7set/+C4BR9bpjM2BaqwdAlwYB/vsQin3IgGjNtiYc74Z75FadUJiST2dmAagBATz/RoU3GzaiRQ== X-Received: by 2002:aa7:cac2:0:b0:4aa:a280:55b5 with SMTP id l2-20020aa7cac2000000b004aaa28055b5mr7124337edt.20.1678626917875; Sun, 12 Mar 2023 06:15:17 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d9f6:3e61:beeb:295a]) by smtp.gmail.com with ESMTPSA id h26-20020a170906399a00b00915d58e56f0sm2223493eje.77.2023.03.12.06.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:15:17 -0700 (PDT) From: Krzysztof Kozlowski To: Dmitry Torokhov , Ray Jui , Scott Branden , Broadcom internal kernel review list , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Cc: Krzysztof Kozlowski Subject: [PATCH 2/4] Input: tm2-touchkey: drop of_match_ptr for ID table Date: Sun, 12 Mar 2023 14:15:12 +0100 Message-Id: <20230312131514.351603-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230312131514.351603-1-krzysztof.kozlowski@linaro.org> References: <20230312131514.351603-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). This also fixes !CONFIG_OF error: drivers/input/keyboard/tm2-touchkey.c:335:34: error: ‘tm2_touchkey_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/input/keyboard/tm2-touchkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c index 6627e65f06e5..4e20571cb4c3 100644 --- a/drivers/input/keyboard/tm2-touchkey.c +++ b/drivers/input/keyboard/tm2-touchkey.c @@ -354,7 +354,7 @@ static struct i2c_driver tm2_touchkey_driver = { .driver = { .name = TM2_TOUCHKEY_DEV_NAME, .pm = pm_sleep_ptr(&tm2_touchkey_pm_ops), - .of_match_table = of_match_ptr(tm2_touchkey_of_match), + .of_match_table = tm2_touchkey_of_match, }, .probe_new = tm2_touchkey_probe, .id_table = tm2_touchkey_id_table, -- 2.34.1