mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
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>
This commit is contained in:
parent
b0922c0732
commit
2d93018fe6
1 changed files with 6 additions and 6 deletions
|
@ -227,7 +227,7 @@ struct gpio_irq_chip {
|
||||||
/**
|
/**
|
||||||
* @valid_mask:
|
* @valid_mask:
|
||||||
*
|
*
|
||||||
* If not %NULL holds bitmask of GPIOs which are valid to be included
|
* If not %NULL, holds bitmask of GPIOs which are valid to be included
|
||||||
* in IRQ domain of the chip.
|
* in IRQ domain of the chip.
|
||||||
*/
|
*/
|
||||||
unsigned long *valid_mask;
|
unsigned long *valid_mask;
|
||||||
|
@ -346,7 +346,7 @@ struct gpio_irq_chip {
|
||||||
* output.
|
* output.
|
||||||
*
|
*
|
||||||
* A gpio_chip can help platforms abstract various sources of GPIOs so
|
* A gpio_chip can help platforms abstract various sources of GPIOs so
|
||||||
* they can all be accessed through a common programing interface.
|
* they can all be accessed through a common programming interface.
|
||||||
* Example sources would be SOC controllers, FPGAs, multifunction
|
* Example sources would be SOC controllers, FPGAs, multifunction
|
||||||
* chips, dedicated GPIO expanders, and so on.
|
* chips, dedicated GPIO expanders, and so on.
|
||||||
*
|
*
|
||||||
|
@ -435,15 +435,15 @@ struct gpio_chip {
|
||||||
/**
|
/**
|
||||||
* @valid_mask:
|
* @valid_mask:
|
||||||
*
|
*
|
||||||
* If not %NULL holds bitmask of GPIOs which are valid to be used
|
* If not %NULL, holds bitmask of GPIOs which are valid to be used
|
||||||
* from the chip.
|
* from the chip.
|
||||||
*/
|
*/
|
||||||
unsigned long *valid_mask;
|
unsigned long *valid_mask;
|
||||||
|
|
||||||
#if defined(CONFIG_OF_GPIO)
|
#if defined(CONFIG_OF_GPIO)
|
||||||
/*
|
/*
|
||||||
* If CONFIG_OF is enabled, then all GPIO controllers described in the
|
* If CONFIG_OF_GPIO is enabled, then all GPIO controllers described in
|
||||||
* device tree automatically may have an OF translation
|
* the device tree automatically may have an OF translation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -508,7 +508,7 @@ extern int gpiochip_add_data_with_key(struct gpio_chip *gc, void *data,
|
||||||
* for GPIOs will fail rudely.
|
* for GPIOs will fail rudely.
|
||||||
*
|
*
|
||||||
* gpiochip_add_data() must only be called after gpiolib initialization,
|
* gpiochip_add_data() must only be called after gpiolib initialization,
|
||||||
* ie after core_initcall().
|
* i.e. after core_initcall().
|
||||||
*
|
*
|
||||||
* If gc->base is negative, this requests dynamic assignment of
|
* If gc->base is negative, this requests dynamic assignment of
|
||||||
* a range of valid GPIOs.
|
* a range of valid GPIOs.
|
||||||
|
|
Loading…
Add table
Reference in a new issue