All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: uapi: Improve phrasing around arrays representing empty strings
@ 2020-03-03 20:01 Jonathan Neuschäfer
  2020-03-04 14:11 ` Bartosz Golaszewski
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Neuschäfer @ 2020-03-03 20:01 UTC (permalink / raw)
  To: linux-gpio
  Cc: Jonathan Neuschäfer, Linus Walleij, Bartosz Golaszewski,
	linux-kernel

Character arrays can be considered empty strings (if they are
immediately terminated), but they cannot be NULL.

Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
---
 include/uapi/linux/gpio.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h
index 799cf823d493..cd88599ea3ea 100644
--- a/include/uapi/linux/gpio.h
+++ b/include/uapi/linux/gpio.h
@@ -18,7 +18,7 @@
  * struct gpiochip_info - Information about a certain GPIO chip
  * @name: the Linux kernel name of this GPIO chip
  * @label: a functional name for this GPIO chip, such as a product
- * number, may be NULL
+ * number, may be empty
  * @lines: number of GPIO lines on this chip
  */
 struct gpiochip_info {
@@ -44,10 +44,10 @@ struct gpiochip_info {
  * @flags: various flags for this line
  * @name: the name of this GPIO line, such as the output pin of the line on the
  * chip, a rail or a pin header name on a board, as specified by the gpio
- * chip, may be NULL
+ * chip, may be empty
  * @consumer: a functional name for the consumer of this GPIO line as set by
- * whatever is using it, will be NULL if there is no current user but may
- * also be NULL if the consumer doesn't set this up
+ * whatever is using it, will be empty if there is no current user but may
+ * also be empty if the consumer doesn't set this up
  */
 struct gpioline_info {
 	__u32 line_offset;
--
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpio: uapi: Improve phrasing around arrays representing empty strings
  2020-03-03 20:01 [PATCH] gpio: uapi: Improve phrasing around arrays representing empty strings Jonathan Neuschäfer
@ 2020-03-04 14:11 ` Bartosz Golaszewski
  0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2020-03-04 14:11 UTC (permalink / raw)
  To: Jonathan Neuschäfer; +Cc: linux-gpio, Linus Walleij, LKML

wt., 3 mar 2020 o 21:06 Jonathan Neuschäfer <j.neuschaefer@gmx.net> napisał(a):
>
> Character arrays can be considered empty strings (if they are
> immediately terminated), but they cannot be NULL.
>
> Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>

Makes sense, patch applied!

Bart

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-04 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 20:01 [PATCH] gpio: uapi: Improve phrasing around arrays representing empty strings Jonathan Neuschäfer
2020-03-04 14:11 ` 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.