Skip to content

Commit 4fb220d

Browse files
andy-shevJonathan Corbet
authored andcommitted
gpiolib: Update indentation in driver.rst for code excerpts
When TABs are being used to indent the code excerpts inside the bullet lists some of the tools [vim in particular] fail to recognize it and continue interpreting the special characters inside the quoted excerpt. Update indentation in driver.rst for code excerpts to avoid their special interpretation. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20201007143817.76335-1-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 7a87724 commit 4fb220d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Documentation/driver-api/gpio/driver.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,12 @@ Cascaded GPIO irqchips usually fall in one of three categories:
342342
forced to a thread. The "fake?" raw lock can be used to work around this
343343
problem::
344344

345-
raw_spinlock_t wa_lock;
346-
static irqreturn_t omap_gpio_irq_handler(int irq, void *gpiobank)
347-
unsigned long wa_lock_flags;
348-
raw_spin_lock_irqsave(&bank->wa_lock, wa_lock_flags);
349-
generic_handle_irq(irq_find_mapping(bank->chip.irq.domain, bit));
350-
raw_spin_unlock_irqrestore(&bank->wa_lock, wa_lock_flags);
345+
raw_spinlock_t wa_lock;
346+
static irqreturn_t omap_gpio_irq_handler(int irq, void *gpiobank)
347+
unsigned long wa_lock_flags;
348+
raw_spin_lock_irqsave(&bank->wa_lock, wa_lock_flags);
349+
generic_handle_irq(irq_find_mapping(bank->chip.irq.domain, bit));
350+
raw_spin_unlock_irqrestore(&bank->wa_lock, wa_lock_flags);
351351

352352
- GENERIC CHAINED GPIO IRQCHIPS: these are the same as "CHAINED GPIO irqchips",
353353
but chained IRQ handlers are not used. Instead GPIO IRQs dispatching is

0 commit comments

Comments
 (0)