Skip to contentSkip to conversation

Documentation: gpio: driver: Format code blocks properly

PATCH Applied Jonathan Neuschäfer 2 participants 2 messages Oct 2, 2019 – Oct 3, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: gpio: driver: Format code blocks properly

This fixes a lot of Sphinx warnings, and makes the code blocks look nice in HTML.

---
 Documentation/driver-api/gpio/driver.rst | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/driver-api/gpio/driver.rst +4 -0
index 3fdb32422f8a..18dca55eddfd 100644
@@ -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

#1 lore raw

śr., 2 paź 2019 o 16:41 Jonathan Neuschäfer <[email protected]> napisał(a):

Quoted 32 lines

This fixes a lot of Sphinx warnings, and makes the code blocks look nice in HTML.

---
 Documentation/driver-api/gpio/driver.rst | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/driver-api/gpio/driver.rst +4 -1
index 3fdb32422f8a..18dca55eddfd 100644
@@ -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;
--
Quoted 2 lines

2.20.1

Applied, thanks!

Bart