Message ID | 20221101205159.1468069-3-lis8215@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3201670wru; Tue, 1 Nov 2022 13:54:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4X3Urdt10bOOuHC0ceXAaTGh8AdlxQcbtMNcIw1l+kFRVKd92IOr8xWkSLTGiTER9FbRHL X-Received: by 2002:a63:1861:0:b0:462:4961:9a8f with SMTP id 33-20020a631861000000b0046249619a8fmr18957988pgy.372.1667336072534; Tue, 01 Nov 2022 13:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667336072; cv=none; d=google.com; s=arc-20160816; b=APQaeLlhVt+aDcQ0Khz+T4yLgXrBPVAlo87U8OuxQJZ+VuEHcSBM6cc3qHLNpNYDHB DXEtuxsaod9DVW6NNFkfSY0jsQgNG5dOXLCERZyDFwC0BO0fC/sWZrIy5500yVborWuC mmdpVWnhW+tvchxxyoj+jZH7DYW1xRmwp+HVPpyfv2vbVNp4YUNeL0xjd2kXDn6Si6J+ +nswSulINmu2wpdXx4/MjbJuy0sIEdd9InSnrsU9hkXpG+umMH+7GXEUCwu35n8//aA7 PpVRdbslgOsGmJ5F3X+eFO230sY4TV6iKaLzcifpf+ZLcI10odHaP/WO7cQX6ML7fxor /0gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=BcZrSM0NMDEUGkRu1zNxv5heHBVcDpwHzAaIVD3JgIk=; b=sH3jfxCp0tZEhDTM9AonV5NDObgUVEq0RFDzmwDeh7AWe7Ru4FEO+80AtIpfFtqBUC z8sQFLqzCWaEoj2mVx5zL4cRyOIReYSBRvkZw7mkNMJyBouuW7/YpZw3StlRNDv6e5qE dwgPpN26kg9oAU0XvyxqmjMvR4dIcbBQpZ+7c8CL92Dl8hst7lPKBEqtxTSBwhHvYot2 hHqCLdRCNrkEFnmGWLzJDkhdse1SHeMd1CyCL2Q6z0irmRUg+B6krdO8InrAre2LJjA2 AR3RLoIVTEpbxIO1p71vA2jqQRs0w0puWImtQVS4Urtiu005vgzi33IkR8nq1+BDGLqM GZ8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=ZS3GLTdZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id na11-20020a17090b4c0b00b00213d1d59224si12455903pjb.136.2022.11.01.13.54.19; Tue, 01 Nov 2022 13:54:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=ZS3GLTdZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229468AbiKAUwx (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Tue, 1 Nov 2022 16:52:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbiKAUwo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Nov 2022 16:52:44 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7C2418B34; Tue, 1 Nov 2022 13:52:43 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id n39-20020a05600c3ba700b003cf71011cddso1355801wms.1; Tue, 01 Nov 2022 13:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=BcZrSM0NMDEUGkRu1zNxv5heHBVcDpwHzAaIVD3JgIk=; b=ZS3GLTdZqJ53CpP+xPle8E1+BSh/wmgbOKPfFiRRm6QVT3RHkrzF8Dtkz+nR+SsOQN IrVsiL7Aqf4FOb12Ne7xjiSN0NWtxGj3TaIP3MZktbdcA3XpB1qj3RQBq4SJjInTcGQK M7ZjT4qBlpNEUq693Uhx+uhhwek7ODLtM8N4OThyZJFF+slhZBi5xRt3N68EFk5P6pcI aPPDGMmNS4joo6fPiWOKW80ElZvZ59vqAJptJRy79sKhUGx+eB9mzwzucRG0UBU2Rs+d a4lEg6LZcC7PXVGki45XLylwsoNjsUltJ2D8eFx1KnNneakddUWdNcU1O1CUN/hLtao3 vzug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=BcZrSM0NMDEUGkRu1zNxv5heHBVcDpwHzAaIVD3JgIk=; b=YdpQCyRF6X1OhL1fKc27cxfBk4CGgiKSp97NsBXa258r9Sm9CrY8klRYhZZeqBpwBn bCyOGn2//QKZgK+96OxbUz/ClMYK8+jFXSVAsmkFHzP/3WzJCYJL40wITeOUdqHBCdO9 T3EIMVT43qNT68aJLQGUW04HSwTA7icCzD6L50LMqdQCRJ7shBaUjxJv/tIl2MDyu0Do uYTim9bLuLQiu5jaTvnwIbdmnqHF462AA3KeqBEATaycCi40HZP0od5qJsvEJDZR+08G DdzmeSJMuawluDzXZGiWpVZTtRj2RQSGzC8dq3EbAgFIlSBI8WvdLfaVMYNNrLlTFT1T MaGA== X-Gm-Message-State: ACrzQf14bPTbcV+eetzIiJYvYdOiA9v4X2eghqo/blQqB+uydTt0OWEB gKevTd4qDDT2fpuTUX/nlcY= X-Received: by 2002:a05:600c:4d08:b0:3cf:674a:d3c2 with SMTP id u8-20020a05600c4d0800b003cf674ad3c2mr12728240wmp.157.1667335962502; Tue, 01 Nov 2022 13:52:42 -0700 (PDT) Received: from hp-power-15.localdomain (mm-167-8-212-37.vitebsk.dynamic.pppoe.byfly.by. [37.212.8.167]) by smtp.gmail.com with ESMTPSA id jb1-20020a05600c54e100b003c6b874a0dfsm11854413wmb.14.2022.11.01.13.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 13:52:42 -0700 (PDT) From: Siarhei Volkau <lis8215@gmail.com> Cc: Siarhei Volkau <lis8215@gmail.com>, Linus Walleij <linus.walleij@linaro.org>, Jonathan Corbet <corbet@lwn.net>, linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] docs/pinctrl: fix runtime pinmuxing example Date: Tue, 1 Nov 2022 23:51:59 +0300 Message-Id: <20221101205159.1468069-3-lis8215@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221101205159.1468069-1-lis8215@gmail.com> References: <20221101205159.1468069-1-lis8215@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, SUSPICIOUS_RECIPS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748328589400066646?= X-GMAIL-MSGID: =?utf-8?q?1748328589400066646?= |
Series |
docs/pinctrl: fix pinctrl examples
|
|
Commit Message
Siarhei Volkau
Nov. 1, 2022, 8:51 p.m. UTC
The example declares "struct pinctrl *p" but refers to
"foo->p" which isn't declared in the context of the example.
Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
---
Documentation/driver-api/pin-control.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/driver-api/pin-control.rst b/Documentation/driver-api/pin-control.rst index 19a41c68d..0022e930e 100644 --- a/Documentation/driver-api/pin-control.rst +++ b/Documentation/driver-api/pin-control.rst @@ -1399,11 +1399,11 @@ on the pins defined by group B:: if (IS_ERR(p)) ... - s1 = pinctrl_lookup_state(foo->p, "pos-A"); + s1 = pinctrl_lookup_state(p, "pos-A"); if (IS_ERR(s1)) ... - s2 = pinctrl_lookup_state(foo->p, "pos-B"); + s2 = pinctrl_lookup_state(p, "pos-B"); if (IS_ERR(s2)) ... }