From patchwork Sun Mar 12 13:27:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662848 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 610BAC74A4B for ; Sun, 12 Mar 2023 13:27:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230458AbjCLN1s (ORCPT ); Sun, 12 Mar 2023 09:27:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230516AbjCLN1d (ORCPT ); Sun, 12 Mar 2023 09:27:33 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E2A6532A4 for ; Sun, 12 Mar 2023 06:27:08 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id j11so38593156edq.4 for ; Sun, 12 Mar 2023 06:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678627623; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UfPqeOLW7or+4SmUILObRzf1lvCA61sFi8BYiPE3oKo=; b=d7viElX6WjL8e/pjhES9zSFEvsV15OtVpWHceSNoKWMrgrfclhNLOKCzC9+ElaKXWa NhkbfsSZ9MTbt67dUApI6czkTtSZ6P38S5z/qglSgzZYGt+tVyByStmw3/DkbakD0BTe /Qk1sMw/wb8O9yV65W9AB3SLMiWzRAZxUjvO/pg9hVq+QTt+X+QlXWR2laQm/Yl9CiNx MAoro3hWhMOeGNyoMrgJ18i/Mc9mk/dtTDvJVL6HwAmBLkaEYF3Wk6tXVf+daVvBZSNO p1o0mg/aV1dH7O0C+dgWNptLBdlD7SuQoNyK+lWNl1oTUOUTlwHB6rfokIZT3ryr68/8 YT9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678627623; 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=UfPqeOLW7or+4SmUILObRzf1lvCA61sFi8BYiPE3oKo=; b=xJBP3g7C6Y3DmIDAoIZc4QTfnN/TolHIAedKR+DfO73vHEwXLw8X2R8hIsnu+XTbrL 8YC8GqFvAYCmQkQCklM4kdp10vOOIXp56oBYDoBOjE4cvHvdCo0b6qtWBL8smYXHB/f7 gPEpgUQ/+6ZK8nnJt9t8vRfxhGoklPJgGr9F7iPCtfvs61dNcu3qdXWitGjOLOPFE06/ +REioMpyD4XVXLL6cms0z4+4vs/OgXFcb5AyaUXLNPFSmmA8ycYoa9mhZDeb6P0F6LEK X4qxfLdFmtGiGkp/B1gSyxtyYFpfvB4+fupHurV1okQitB+Xss9rZ5dFHQWKmNdqfYgj 7adg== X-Gm-Message-State: AO0yUKWgjClFCo+Qe1IXKYSQbCUt3tv9Z9dJjjj8AydKnTE0ZgQcyUaG bgXIiOmrK4EtRaHIhGHyAdEnjpz1ab2hFqKJJx8= X-Google-Smtp-Source: AK7set+aK4FVNfCezrbJEaLy/bClCmwbZ6D7lRIUdkDV05aFMUu1jCGuYbHorMQVRispbzKvBcvk8w== X-Received: by 2002:a50:ee18:0:b0:4ac:b6b2:1233 with SMTP id g24-20020a50ee18000000b004acb6b21233mr27886248eds.30.1678627623692; Sun, 12 Mar 2023 06:27:03 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:d9f6:3e61:beeb:295a]) by smtp.gmail.com with ESMTPSA id d6-20020a50f686000000b004bef1187754sm586773edn.95.2023.03.12.06.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 06:27:03 -0700 (PDT) From: Krzysztof Kozlowski To: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] pinctrl: sx150x: drop of_match_ptr for ID table Date: Sun, 12 Mar 2023 14:27:02 +0100 Message-Id: <20230312132702.352832-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-gpio@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/pinctrl/pinctrl-sx150x.c:833:34: error: ‘sx150x_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/pinctrl/pinctrl-sx150x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-sx150x.c b/drivers/pinctrl/pinctrl-sx150x.c index 0b5ff99641e1..87fcbfbf49b7 100644 --- a/drivers/pinctrl/pinctrl-sx150x.c +++ b/drivers/pinctrl/pinctrl-sx150x.c @@ -1250,7 +1250,7 @@ static int sx150x_probe(struct i2c_client *client) static struct i2c_driver sx150x_driver = { .driver = { .name = "sx150x-pinctrl", - .of_match_table = of_match_ptr(sx150x_of_match), + .of_match_table = sx150x_of_match, }, .probe_new = sx150x_probe, .id_table = sx150x_id,