* [PATCH -next v1] gpio: Properly document parent data union
@ 2022-03-18 12:12 Joey Gouly
2022-03-18 21:31 ` Linus Walleij
2022-03-31 14:24 ` Bartosz Golaszewski
0 siblings, 2 replies; 3+ messages in thread
From: Joey Gouly @ 2022-03-18 12:12 UTC (permalink / raw)
To: linux-gpio; +Cc: nd, brgl, joey.gouly, linus.walleij, maz, sfr
Suppress a warning in the html docs by documenting these fields separately.
Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/lkml/20211027220118.71a229ab@canb.auug.org.au/
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
---
include/linux/gpio/driver.h | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
index b0728c8ad90c..98c93510640e 100644
--- a/include/linux/gpio/driver.h
+++ b/include/linux/gpio/driver.h
@@ -168,13 +168,16 @@ struct gpio_irq_chip {
/**
* @parent_handler_data:
+ *
+ * If @per_parent_data is false, @parent_handler_data is a single
+ * pointer used as the data associated with every parent interrupt.
+ *
* @parent_handler_data_array:
*
- * Data associated, and passed to, the handler for the parent
- * interrupt. Can either be a single pointer if @per_parent_data
- * is false, or an array of @num_parents pointers otherwise. If
- * @per_parent_data is true, @parent_handler_data_array cannot be
- * NULL.
+ * If @per_parent_data is true, @parent_handler_data_array is
+ * an array of @num_parents pointers, and is used to associate
+ * different data for each parent. This cannot be NULL if
+ * @per_parent_data is true.
*/
union {
void *parent_handler_data;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next v1] gpio: Properly document parent data union
2022-03-18 12:12 [PATCH -next v1] gpio: Properly document parent data union Joey Gouly
@ 2022-03-18 21:31 ` Linus Walleij
2022-03-31 14:24 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2022-03-18 21:31 UTC (permalink / raw)
To: Joey Gouly; +Cc: linux-gpio, nd, brgl, maz, sfr
On Fri, Mar 18, 2022 at 1:12 PM Joey Gouly <joey.gouly@arm.com> wrote:
> Suppress a warning in the html docs by documenting these fields separately.
>
> Signed-off-by: Joey Gouly <joey.gouly@arm.com>
> Link: https://lore.kernel.org/lkml/20211027220118.71a229ab@canb.auug.org.au/
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Bartosz Golaszewski <brgl@bgdev.pl>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Looks good to me!
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next v1] gpio: Properly document parent data union
2022-03-18 12:12 [PATCH -next v1] gpio: Properly document parent data union Joey Gouly
2022-03-18 21:31 ` Linus Walleij
@ 2022-03-31 14:24 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2022-03-31 14:24 UTC (permalink / raw)
To: Joey Gouly
Cc: open list:GPIO SUBSYSTEM, nd, Linus Walleij, Marc Zyngier,
Stephen Rothwell
On Fri, Mar 18, 2022 at 1:12 PM Joey Gouly <joey.gouly@arm.com> wrote:
>
> Suppress a warning in the html docs by documenting these fields separately.
>
> Signed-off-by: Joey Gouly <joey.gouly@arm.com>
> Link: https://lore.kernel.org/lkml/20211027220118.71a229ab@canb.auug.org.au/
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Cc: Bartosz Golaszewski <brgl@bgdev.pl>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> ---
> include/linux/gpio/driver.h | 13 ++++++++-----
> 1 file changed, 8 insertions(+), 5 deletions(-)
>
> diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h
> index b0728c8ad90c..98c93510640e 100644
> --- a/include/linux/gpio/driver.h
> +++ b/include/linux/gpio/driver.h
> @@ -168,13 +168,16 @@ struct gpio_irq_chip {
>
> /**
> * @parent_handler_data:
> + *
> + * If @per_parent_data is false, @parent_handler_data is a single
> + * pointer used as the data associated with every parent interrupt.
> + *
> * @parent_handler_data_array:
> *
> - * Data associated, and passed to, the handler for the parent
> - * interrupt. Can either be a single pointer if @per_parent_data
> - * is false, or an array of @num_parents pointers otherwise. If
> - * @per_parent_data is true, @parent_handler_data_array cannot be
> - * NULL.
> + * If @per_parent_data is true, @parent_handler_data_array is
> + * an array of @num_parents pointers, and is used to associate
> + * different data for each parent. This cannot be NULL if
> + * @per_parent_data is true.
> */
> union {
> void *parent_handler_data;
> --
> 2.17.1
>
Applied, thanks!
Bart
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-31 14:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18 12:12 [PATCH -next v1] gpio: Properly document parent data union Joey Gouly
2022-03-18 21:31 ` Linus Walleij
2022-03-31 14:24 ` Bartosz Golaszewski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.