Skip to content

Commit 2d93018

Browse files
rddunlapbrgl
authored andcommitted
gpiolib: some edits of kernel docs for clarity
Fix a few typos and some punctuation. Also, change CONFIG_OF to CONFIG_OF_GPIO in one comment. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com> Cc: linux-gpio@vger.kernel.org Reviewed-by: Linus Walleij <linus.walleij@linaro.org> [Bartosz: tweaked the commit message] Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
1 parent b0922c0 commit 2d93018

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎include/linux/gpio/driver.h‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ struct gpio_irq_chip {
227227
/**
228228
* @valid_mask:
229229
*
230-
* If not %NULL holds bitmask of GPIOs which are valid to be included
230+
* If not %NULL, holds bitmask of GPIOs which are valid to be included
231231
* in IRQ domain of the chip.
232232
*/
233233
unsigned long *valid_mask;
@@ -346,7 +346,7 @@ struct gpio_irq_chip {
346346
* output.
347347
*
348348
* A gpio_chip can help platforms abstract various sources of GPIOs so
349-
* they can all be accessed through a common programing interface.
349+
* they can all be accessed through a common programming interface.
350350
* Example sources would be SOC controllers, FPGAs, multifunction
351351
* chips, dedicated GPIO expanders, and so on.
352352
*
@@ -435,15 +435,15 @@ struct gpio_chip {
435435
/**
436436
* @valid_mask:
437437
*
438-
* If not %NULL holds bitmask of GPIOs which are valid to be used
438+
* If not %NULL, holds bitmask of GPIOs which are valid to be used
439439
* from the chip.
440440
*/
441441
unsigned long *valid_mask;
442442

443443
#if defined(CONFIG_OF_GPIO)
444444
/*
445-
* If CONFIG_OF is enabled, then all GPIO controllers described in the
446-
* device tree automatically may have an OF translation
445+
* If CONFIG_OF_GPIO is enabled, then all GPIO controllers described in
446+
* the device tree automatically may have an OF translation
447447
*/
448448

449449
/**
@@ -508,7 +508,7 @@ extern int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data,
508508
* for GPIOs will fail rudely.
509509
*
510510
* gpiochip_add_data() must only be called after gpiolib initialization,
511-
* ie after core_initcall().
511+
* i.e. after core_initcall().
512512
*
513513
* If gc->base is negative, this requests dynamic assignment of
514514
* a range of valid GPIOs.

0 commit comments

Comments
 (0)