From patchwork Sun Mar 12 13:15:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13171362 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 74A87C74A4B for ; Sun, 12 Mar 2023 13:17:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230347AbjCLNRU (ORCPT ); Sun, 12 Mar 2023 09:17:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230249AbjCLNRC (ORCPT ); Sun, 12 Mar 2023 09:17:02 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AC7B46168 for ; Sun, 12 Mar 2023 06:15:55 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id cn21so8323923edb.0 for ; Sun, 12 Mar 2023 06:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678626917; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Y4NIviSFBdopEf8zQTdl2J1MRzQXgxaliBaSLt4RpAk=; b=H0gAYKteJZspYXhBQb75omimqMlU/3ICKO865cyDwNVHcSV9El2GPK8iBANJpw4WTf uSlYknNPoNxmPDr1cayhoMMjioXKbh4JISMQSYYm50XfVL2OKtKt3ELm4uC+ufpuY/Pz gV8aFkz2EZowNSm/luHBng1oXIHab6hjItQRMnAuD4l/bXp8VooAIhXV+R2EQbZlhZRz yMz6nQ7cZxqoa4ZD77/BpLScxsDjqOyUnep1ya6MNgVSBFInP5yZwunhFzyx+2g9Sy2v A3JwbUJBRAAt6rAsKIaqTLYEbHiCCWi641dSnbv4jP8NE3eeKhAU6dR0Rfz/Yxju+0cc sgHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678626917; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y4NIviSFBdopEf8zQTdl2J1MRzQXgxaliBaSLt4RpAk=; b=7mh5I0xJSsG+xfWoAddVwaqhznAsoauslDK3781H8k2xVQe4idK39BFRDnT2bjQS7L EhUvjCDhpr5GPpRUCNcWqP42wiGjQmLzWHQv7jo/SFdI50o90IoCb2IPXYyUOVv5eEDu h6Ad+63cWzRsS3lNBrb9My4fMLhUXh1dhn1LkVpZA1+1WREDQwk0Ey1FJ7eMGEiUp8se H7MgXetjkvpXXiBj9lDh7lyecEWQ+OF9IdI6trETJ5LTDLT5rMSbRoCtvq3i88ZfjJT/ AGMoxBhq8363yLK7gObx6R0QdfuofREajPAjJHYDnOAfPJZPPZfN5II/vqINJR84WLgB pzCA== X-Gm-Message-State: AO0yUKUyHFblQ1bc0lOIOCELRyteVjtmis+UBCh/Gg9IS4OPuN6dpBlc b7NrVVSNz5LfVapk4QJu7vAb9Q== X-Google-Smtp-Source: AK7set8I4cqRQbCnoLL6lvvu0JefPsaKOI2DGJq/GhcEpkC6BmWIDdihxL2/gFsjsKFFEZdmBfNu3g== X-Received: by 2002:a17:906:8d86:b0:8f9:ed75:f962 with SMTP id ry6-20020a1709068d8600b008f9ed75f962mr33585228ejc.18.1678626916875; Sun, 12 Mar 2023 06:15:16 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:15:16 -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 1/4] Input: st-keyscan: drop of_match_ptr for ID table Date: Sun, 12 Mar 2023 14:15:11 +0100 Message-Id: <20230312131514.351603-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it might not be relevant here). This also fixes !CONFIG_OF error: drivers/input/keyboard/st-keyscan.c:251:34: error: ‘keyscan_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/input/keyboard/st-keyscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/st-keyscan.c b/drivers/input/keyboard/st-keyscan.c index b6e83324f97a..0d27324af809 100644 --- a/drivers/input/keyboard/st-keyscan.c +++ b/drivers/input/keyboard/st-keyscan.c @@ -259,7 +259,7 @@ static struct platform_driver keyscan_device_driver = { .driver = { .name = "st-keyscan", .pm = pm_sleep_ptr(&keyscan_dev_pm_ops), - .of_match_table = of_match_ptr(keyscan_of_match), + .of_match_table = keyscan_of_match, } };