Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4553197ybi; Tue, 30 Jul 2019 04:07:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKad67eq7XYcbFI7HGVmJ6JI+HDzrBUATDtTJtouaPg92tUfl/V8Kl3NCYUHrVHCG+Qryb X-Received: by 2002:a17:902:54d:: with SMTP id 71mr112008045plf.140.1564484867087; Tue, 30 Jul 2019 04:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564484867; cv=none; d=google.com; s=arc-20160816; b=z68S2mLhHt91SyozCKj8LLSOlAt4FKYA688+q3lKzqOzkY2q79oPHJOM5b6/8vx3/U yJNuC3pvL2nfGQ7YRireaOqtwUHmCMNKLHCklV7KGxyDeu3fiCyvkKLg3Qsp7f2lEkhX Y8v5m3+z8IceRaDLZWFgG6KSnNzDJJxYgrlhlkPVDs09nA236lfk9LEnzvOYhrb33aXF Mytv4J3m/SYfi+XYwO+289gN6cC2mBrzzG0cuHRluwGR+/OsJClFgUBgshoxhTgGulHi qXqSuIk2Bv2FfBaRd0A3K2lTZwGWa9M+SuSZ5LaPtOcmWloIKt91rykYylk3HX4wObOj Qvng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=CNU8TS9u3/ubSDEXC8bYLt11vTX+jIiR3ccUu5xBq/s=; b=GvNtrlS2HP33qMATm2DGtbebf6zXFWfgNC4ilULCvj+IZCPMZQX+cWfahx/q/JMGNg kfOkX8ySa9OOLzRg7ia78ZCG0H5SgpBRzqoqVJlrwi+rl2ecP6Y/XnCI9pmjEIzOUI6S z0h5rkNPaxGjVO/zHJU59bc/YV8WqrQs594yMAYnouZeS8kzc3SVXr7wqC5tl0HTTgZN IECIdA8C20Z1NBqiEqc/rId4FOqc3gSkZtwcwFji42HxwvTAldWj+urfjredmXf8QK3Z hyOb1/0W2bM4SpbEIseQ7J0U0TpcXIjwWhvWKSw6TtC7IRmuqxtnMUgKDZMTdyylqPDf KwlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xn6TrcnJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i36si26253978plb.365.2019.07.30.04.07.32; Tue, 30 Jul 2019 04:07:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xn6TrcnJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729555AbfG3IRS (ORCPT + 99 others); Tue, 30 Jul 2019 04:17:18 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:37115 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729057AbfG3IRR (ORCPT ); Tue, 30 Jul 2019 04:17:17 -0400 Received: by mail-oi1-f196.google.com with SMTP id t76so47336096oih.4 for ; Tue, 30 Jul 2019 01:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=CNU8TS9u3/ubSDEXC8bYLt11vTX+jIiR3ccUu5xBq/s=; b=xn6TrcnJQW1843kXVkaivWSqaN6YpPuOoSGwYZH296NWOGCTIIFUhybEsgwhGezhj/ JW8rx5mw3kap3WdICRseoi7PjJM75dSjB0Nz9wm9q63Krqsnlkc0a7J0mlGvPvEqp6KK kdNapt9bS6ofRieaQoz2o8+I7Ex7zVe+chFEKlZBN3rlxPzLAMZm7TSFuLXf/MYG0bzg 5YPohWDxh6QreIXNahDV6kcvYSxG6RS+qCegWHydhnkykJbLHNNXLdkWE3Qd0H4Q1H8g 4WAef36wkgJGMpHDKLpyC7H++2UMaCTsF4tp3CLNLXWhJQCkZjy1xq+i5XE+wP84aGct UX5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=CNU8TS9u3/ubSDEXC8bYLt11vTX+jIiR3ccUu5xBq/s=; b=X7gMZRNdFAOxgSdPGG6Uym+MwTIHBmIlv0NfEsxyOJDMBQ4gzMCE5f1qvUyX3uyTD6 40c9XBAGiKGihMDVUQe6Js1fgOqS8pFN2WyAV59IMHCxj4ns6G99Y6KmhXqZAyWaHCBC T9LZyPnQDkqhiPgDrJTSP7vsIZjd+ZeADx2GJmSoR6t0n5EoQtMPhRetTWMhlIyF6Fw0 ChPZssteHgaOlQ+ercJXucujOzr+uMcwVPCTntYwbj4DSQU3fJS6LIrDMiPtWL6/Mx8J qNIWJxJbODedv1v6JFdUOrBPHr4PT1gPQcv9fcAiLPETfF+NzifsYUbNujbnnHTc6moU n/FQ== X-Gm-Message-State: APjAAAWOjUA4Vxw5PRuBQAK3G2XuCONDnt1ur2+HwYW8cFNgPTbjocVl I0Mo6RtMCFXOqKzS/LGrS7zEUuE0E5xV53UcysPE4w== X-Received: by 2002:aca:b58b:: with SMTP id e133mr367236oif.147.1564474636495; Tue, 30 Jul 2019 01:17:16 -0700 (PDT) MIME-Version: 1.0 References: <20190729143730.18660-1-jcline@redhat.com> In-Reply-To: <20190729143730.18660-1-jcline@redhat.com> From: Bartosz Golaszewski Date: Tue, 30 Jul 2019 10:17:05 +0200 Message-ID: Subject: Re: [PATCH v2] Documentation: gpio: fix function links in the HTML docs To: Jeremy Cline Cc: Linus Walleij , Jonathan Corbet , linux-gpio , linux-doc , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 29 lip 2019 o 16:37 Jeremy Cline napisa=C5=82(a): > > The shorthand [_data] and [devm_] cause the HTML documentation to not > link to the function documentation properly. This expands the references > to the complete function names with the exception of > devm_gpiochip_remove() which was dropped by commit 48207d7595d2 ("gpio: > drop devm_gpiochip_remove()"). > > Signed-off-by: Jeremy Cline > --- > New in v2: > - Rebased onto v5.3-rc2 > > Documentation/driver-api/gpio/driver.rst | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/Documentation/driver-api/gpio/driver.rst b/Documentation/dri= ver-api/gpio/driver.rst > index 921c71a3d683..906af220b164 100644 > --- a/Documentation/driver-api/gpio/driver.rst > +++ b/Documentation/driver-api/gpio/driver.rst > @@ -69,9 +69,9 @@ driver code: > > The code implementing a gpio_chip should support multiple instances of t= he > controller, preferably using the driver model. That code will configure = each > -gpio_chip and issue ``gpiochip_add[_data]()`` or ``devm_gpiochip_add_dat= a()``. > -Removing a GPIO controller should be rare; use ``[devm_]gpiochip_remove(= )`` > -when it is unavoidable. > +gpio_chip and issue gpiochip_add(), gpiochip_add_data(), or > +devm_gpiochip_add_data(). Removing a GPIO controller should be rare; us= e > +gpiochip_remove() when it is unavoidable. > > Often a gpio_chip is part of an instance-specific structure with states = not > exposed by the GPIO interfaces, such as addressing, power management, an= d more. > @@ -418,11 +418,11 @@ symbol: > > If there is a need to exclude certain GPIO lines from the IRQ domain han= dled by > these helpers, we can set .irq.need_valid_mask of the gpiochip before > -``[devm_]gpiochip_add_data()`` is called. This allocates an .irq.valid_m= ask with as > -many bits set as there are GPIO lines in the chip, each bit representing= line > -0..n-1. Drivers can exclude GPIO lines by clearing bits from this mask. = The mask > -must be filled in before gpiochip_irqchip_add() or gpiochip_irqchip_add_= nested() > -is called. > +devm_gpiochip_add_data() or gpiochip_add_data() is called. This allocate= s an > +.irq.valid_mask with as many bits set as there are GPIO lines in the chi= p, each > +bit representing line 0..n-1. Drivers can exclude GPIO lines by clearing= bits > +from this mask. The mask must be filled in before gpiochip_irqchip_add()= or > +gpiochip_irqchip_add_nested() is called. > > To use the helpers please keep the following in mind: > > -- > 2.21.0 > Patch applied, thanks! Bartosz