* [PATCH] Documentation: gpio: driver: Format code blocks properly
@ 2019-10-02 14:41 Jonathan Neuschäfer
2019-10-03 8:27 ` Bartosz Golaszewski
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Neuschäfer @ 2019-10-02 14:41 UTC (permalink / raw)
To: linux-gpio
Cc: Jonathan Neuschäfer, Linus Walleij, Bartosz Golaszewski,
Jonathan Corbet, linux-doc, linux-kernel
This fixes a lot of Sphinx warnings, and makes the code blocks look nice
in HTML.
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
Documentation/driver-api/gpio/driver.rst | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/driver-api/gpio/driver.rst b/Documentation/driver-api/gpio/driver.rst
index 3fdb32422f8a..18dca55eddfd 100644
--- 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 using 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;
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Documentation: gpio: driver: Format code blocks properly
2019-10-02 14:41 [PATCH] Documentation: gpio: driver: Format code blocks properly Jonathan Neuschäfer
@ 2019-10-03 8:27 ` Bartosz Golaszewski
0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2019-10-03 8:27 UTC (permalink / raw)
To: Jonathan Neuschäfer
Cc: linux-gpio, Linus Walleij, Jonathan Corbet, linux-doc, LKML
śr., 2 paź 2019 o 16:41 Jonathan Neuschäfer <j.neuschaefer@gmx.net> napisał(a):
>
> This fixes a lot of Sphinx warnings, and makes the code blocks look nice
> in HTML.
>
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
> ---
> Documentation/driver-api/gpio/driver.rst | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/driver-api/gpio/driver.rst b/Documentation/driver-api/gpio/driver.rst
> index 3fdb32422f8a..18dca55eddfd 100644
> --- 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 using 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;
> --
> 2.20.1
>
Applied, thanks!
Bart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-03 8:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-02 14:41 [PATCH] Documentation: gpio: driver: Format code blocks properly Jonathan Neuschäfer
2019-10-03 8:27 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).