Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp823169ybh; Thu, 12 Mar 2020 11:45:51 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsTkNDks9YPoEU6UBEAM3nlyMZNo4TYqa9nfCI+HZXQ7qUyrXfonYB3LLTzt6RJkN7exoeF X-Received: by 2002:aca:c695:: with SMTP id w143mr3844712oif.98.1584038751391; Thu, 12 Mar 2020 11:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584038751; cv=none; d=google.com; s=arc-20160816; b=x5m7rnG83dWD3lNH0/49lqHpTC8l4cIt+5K2gNNDofUcpfl5gQOIffhrfuLS8+dnHJ 1jtdMNmvyIGElGzjROaWuz61l85ZVpIouKZ5zdV9fReVP0g7kikm9ePnxaZb1imPcFfU BNWUnBLMaB0H8Sf91HJIAhsN5T67KK69zVL+TuEnq8e54Rjv7OeENMT5gg2R/QCwSehp H70q7hgw3kLWoK/bfbSkiSrv9RXXUnloD6kdFxQueN9pHiHw6vv/ByQaHsJdN/kdqVuX K7zOuJWC1RwXR+CdosBdpUBtPWIOIqAXRuOWSXcqcYJmREgsN67wu9Ocme6bLpcEyTqi xmxA== 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:mime-version :message-id:date:subject:cc:to:from; bh=4WeGmnSW6JIv8KQ2I05aJtdyP0bqldRnyNcgq2UXFEc=; b=ofB5pCK08WGO3uLY7UkLW6AF1cztBKV034ACE+irSG3cE9SEM7i1wcGVj8y4jVOSS0 WSXCIvntOEep3fcaAUYkg6CEM1lhbxDOaB/engoG7BytyNDHnD0XW4YUMHh5OUCfNuHa v5qiOxEmdJG6VdzZUMAsV8wrqXyCUsffLqkZhyhTpwpJ4GbPmPJrAsbavdmwFiZEP2pU 0b2T3Ni8E1DmWC0Yir4qWJRWM1oQezNh+EOC6l3CGkYBpUBFJU3p6rR9DIgX41Bsee2E 4PvB4mqw+RfcxJ54jJn3sxt7OlinfwQ/Mj1UTBECKsc0Ebq9oc1ZXx29swzocd/miUqY iM8Q== ARC-Authentication-Results: i=1; mx.google.com; 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 k3si3177999oib.82.2020.03.12.11.45.37; Thu, 12 Mar 2020 11:45:51 -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; 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 S1726523AbgCLSom (ORCPT + 99 others); Thu, 12 Mar 2020 14:44:42 -0400 Received: from 5.mo178.mail-out.ovh.net ([46.105.51.53]:39016 "EHLO 5.mo178.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726475AbgCLSom (ORCPT ); Thu, 12 Mar 2020 14:44:42 -0400 X-Greylist: delayed 1198 seconds by postgrey-1.27 at vger.kernel.org; Thu, 12 Mar 2020 14:44:40 EDT Received: from player759.ha.ovh.net (unknown [10.108.57.139]) by mo178.mail-out.ovh.net (Postfix) with ESMTP id 988C2953F3 for ; Thu, 12 Mar 2020 19:07:44 +0100 (CET) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player759.ha.ovh.net (Postfix) with ESMTPSA id 3FFD5106367DE; Thu, 12 Mar 2020 18:07:36 +0000 (UTC) From: Stephen Kitt To: Linus Walleij , Bartosz Golaszewski , Jonathan Corbet , "Daniel W . S . Almeida" , linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] docs: driver-api/gpio/driver.rst: fix code blocks Date: Thu, 12 Mar 2020 19:06:51 +0100 Message-Id: <20200312180650.1365059-1-steve@sk2.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 8822551671076179420 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedruddvhedgudduudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejheelrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Two code blocks have duplicate declarations (:: and explicit .. code-block), this fixes them, addressing these warnings: Documentation/driver-api/gpio/driver.rst:425: WARNING: Unexpected indentation. Documentation/driver-api/gpio/driver.rst:423: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:427: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/driver-api/gpio/driver.rst:429: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:429: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:429: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:433: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:446: WARNING: Unexpected indentation. Documentation/driver-api/gpio/driver.rst:440: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:440: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:447: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/driver-api/gpio/driver.rst:449: WARNING: Definition list ends without a blank line; unexpected unindent. Documentation/driver-api/gpio/driver.rst:462: WARNING: Unexpected indentation. Documentation/driver-api/gpio/driver.rst:460: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:462: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:465: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/driver-api/gpio/driver.rst:467: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:467: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:467: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:471: WARNING: Inline emphasis start-string without end-string. Documentation/driver-api/gpio/driver.rst:478: WARNING: Inline emphasis start-string without end-string. Fixes: 4e29b70d5437 ("Documentation: gpio: driver.rst: Fix warnings") Signed-off-by: Stephen Kitt --- Documentation/driver-api/gpio/driver.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/driver-api/gpio/driver.rst b/Documentation/driver-api/gpio/driver.rst index 871922529332..9809f593c0ab 100644 --- a/Documentation/driver-api/gpio/driver.rst +++ b/Documentation/driver-api/gpio/driver.rst @@ -416,7 +416,7 @@ The preferred way to set up the helpers is to fill in the struct gpio_irq_chip inside struct gpio_chip before adding the gpio_chip. If you do this, the additional irq_chip will be set up by gpiolib at the same time as setting up the rest of the GPIO functionality. The following -is a typical example of a cascaded interrupt handler using gpio_irq_chip:: +is a typical example of a cascaded interrupt handler using gpio_irq_chip: .. code-block:: c @@ -453,7 +453,7 @@ is a typical example of a cascaded interrupt handler using gpio_irq_chip:: return devm_gpiochip_add_data(dev, &g->gc, g); The helper support using hierarchical interrupt controllers as well. -In this case the typical set-up will look like this:: +In this case the typical set-up will look like this: .. code-block:: c base-commit: 7d3d3254adaa61cba896f71497f56901deb618e5 -- 2.24.1