Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp901337ybn; Wed, 2 Oct 2019 07:58:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb2gQ/nBpOAC8yul2HYDP4VTTbbvAoAiGJKdZgkPqRkOIH3160UHbFiXPi8MwGP2A+NCA+ X-Received: by 2002:aa7:c34b:: with SMTP id j11mr4250812edr.245.1570028308819; Wed, 02 Oct 2019 07:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570028308; cv=none; d=google.com; s=arc-20160816; b=VGxQXIzeb072u7wwZ5qN+aS5v9LMMDgYAn3ej5PvS6QGoC72DRJaLxNITbJhJbxYwU bk2tun2si//VCWeHM/Y43wFD1+4sootw2k4TaYIPZDxSOhAh1mGGig63IqE+oPt0+LwP XnC7k4oIZFyJdGGWBznUeUSJsKWZ3eQBI+o/OtVIJDICWYy4QQeZyoWN89qoqlRVow+1 9m4Fq3m8wlTwlH9wsFC5VXDUVZhS+kAdGQY4v0ZxkN0SVrQjgubXYOVC+P92EWe/mmEK qWjdXIMpo6VbUMZEYQw4RN02hJIa/Hu+kiwO1z6nkWyT04LDuX8sFJiSP7klPCAcgwYC q8Jw== 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:dkim-signature; bh=v7L5OCrEDSRFtuTFf+a5Tqu6KiytWMs2/3kLT6sfoFc=; b=KbCdXd7bhMxZTlxInn1I+7Sa7nQx/4vc2TZUGKljdgtGvtZWj6VGA3Y8w5lvTaDqpq 9N7qPW9qgLEmypCaEkhGu+cCd0hXDNt9DZiBToeD4KsQd1mO8YDdgPRpwd4cJYkZVTQv QO40GuYaj2cY9gAILE0shMGLAOtdUGYTyjgdUhfLgL2EUiQl6DgidRa5y+WHbgdDImfr tiLZrjBP4Y4JXB6Ewn4CegGC1O0TdFCJo+UcD8hFCLduzqZEwAxiFSmP23MLDk/mmAY+ 4pk+TLJJtXAny07VfNNUzSvXYrgscpKWhyXYmoNpW0ooO/SPw4MJGSLlPgZJ9rxq0sgS H2GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ZzXRNOW+; 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 f6si5275180ejx.293.2019.10.02.07.58.04; Wed, 02 Oct 2019 07:58:28 -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=@gmx.net header.s=badeba3b8450 header.b=ZzXRNOW+; 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 S1728347AbfJBOlu (ORCPT + 99 others); Wed, 2 Oct 2019 10:41:50 -0400 Received: from mout.gmx.net ([212.227.15.18]:58165 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728322AbfJBOlu (ORCPT ); Wed, 2 Oct 2019 10:41:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1570027304; bh=LEhTMKW5en/jej5WrXelG7JFpmCLnLL3D9Fno0SqqiE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=ZzXRNOW+ZhSDxD/PHTD7oPaHkJX6SKVzNwPSQDWltGhgozJ8789ySKvST1l8vzEzC 6yadNZn9jATrP7drL9DQtMW3k+JkhVLKaHa+7+AqhVfaHUpN9K8X6fTOXKxmSDIS+9 EaSdEh1Aa1M/Yh+wLu1vGf8mFtW6nGUf8bR1mJSo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([109.90.233.87]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MvbFs-1hxRz437yw-00siDI; Wed, 02 Oct 2019 16:41:44 +0200 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= To: linux-gpio@vger.kernel.org Cc: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Linus Walleij , Bartosz Golaszewski , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Documentation: gpio: driver: Format code blocks properly Date: Wed, 2 Oct 2019 16:41:41 +0200 Message-Id: <20191002144141.9732-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:YFez/7mfyanK8mMCrXHvqTnhrX6cN+9wLIY25EBKnAxkL3cgsh9 7qafulLSxZIx20FSFlPX6o9yd9y9ZoDrSx3BncrhWl2V9n0HG5ES0x6XSCCSKsliCAR7Yp7 Vh6yNmCbZN5bVqpqwY8ja5uQcpm4B/CJWLUDkKQ3nWT3k7goBNCaGp5SsLFf7/HKAn9yAMl xx8AZXJRK6PlcAP1YkBsg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:34aLev9KuC8=:KnTFspfp4RsaTlnHrzoorr yd/9iE+D3j6WGB6LbHcN8pT+jqwTJcGPQGKt4uSqhU24NUeZ8f4XHYP6Y3S3m3U2OZdesqnbZ HvXA3NqSHhM5J/qGMg7lw9h+fCt1VRRHwO5SFTPikob5qwQ07/wbtMKNRRzIe77+A9mLKAxpe DudyktU9ArLNzCL9dysvfml+6vFU0US72sIlSg6b2FwJrBgsqND16gEIab60Dc2ZwdPL1ryzw Cbh+ZSyNyhJcHdSor0C7NJSgr/OfhfqQvKdKgKW966PIbyi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ence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fixes a lot of Sphinx warnings, and makes the code blocks look nice in HTML. Signed-off-by: Jonathan Neusch=C3=A4fer =2D-- Documentation/driver-api/gpio/driver.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/driver-api/gpio/driver.rst b/Documentation/driv= er-api/gpio/driver.rst index 3fdb32422f8a..18dca55eddfd 100644 =2D-- a/Documentation/driver-api/gpio/driver.rst +++ b/Documentation/driver-api/gpio/driver.rst @@ -415,6 +415,8 @@ 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: +.. code-block:: c + /* Typical state container with dynamic irqchip */ struct my_gpio { struct gpio_chip gc; @@ -450,6 +452,8 @@ is a typical example of a cascaded interrupt handler u= sing gpio_irq_chip: The helper support using hierarchical interrupt controllers as well. In this case the typical set-up will look like this: +.. code-block:: c + /* Typical state container with dynamic irqchip */ struct my_gpio { struct gpio_chip gc; =2D- 2.20.1