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: 1755898 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=d7viElX6; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4PZLFM2W0Jz1yWn for ; Mon, 13 Mar 2023 00:27:51 +1100 (AEDT) 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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,