History

gpio: uapi: Improve phrasing around arrays representing empty strings

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

Jonathan Neuschäfer committed 6 years ago

Commit 32f5f621 parent a28e1c01 file · +4 −4Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/gpio.h+4−4
@@ -18,7 +18,7 @@ · 17 unmodified lines
1818 * struct gpiochip_info - Information about a certain GPIO chip
1919 * @name: the Linux kernel name of this GPIO chip
2020 * @label: a functional name for this GPIO chip, such as a product
21− * number, may be NULL
21+ * number, may be empty
2222 * @lines: number of GPIO lines on this chip
2323 */
2424 struct gpiochip_info {
@@ -44,10 +44,10 @@ struct gpiochip_info { · 19 unmodified lines
4444 * @flags: various flags for this line
4545 * @name: the name of this GPIO line, such as the output pin of the line on the
4646 * chip, a rail or a pin header name on a board, as specified by the gpio
47− * chip, may be NULL
47+ * chip, may be empty
4848 * @consumer: a functional name for the consumer of this GPIO line as set by
49− * whatever is using it, will be NULL if there is no current user but may
50− * also be NULL if the consumer doesn't set this up
49+ * whatever is using it, will be empty if there is no current user but may
50+ * also be empty if the consumer doesn't set this up
5151 */
5252 struct gpioline_info {
5353 __u32 line_offset;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t