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
18 * struct gpiochip_info - Information about a certain GPIO chip18 * struct gpiochip_info - Information about a certain GPIO chip
19 * @name: the Linux kernel name of this GPIO chip19 * @name: the Linux kernel name of this GPIO chip
20 * @label: a functional name for this GPIO chip, such as a product20 * @label: a functional name for this GPIO chip, such as a product
21 * number, may be NULL21 * number, may be empty
22 * @lines: number of GPIO lines on this chip22 * @lines: number of GPIO lines on this chip
23 */23 */
24struct gpiochip_info {24struct gpiochip_info {
@@ -44,10 +44,10 @@ struct gpiochip_info { · 19 unmodified lines
44 * @flags: various flags for this line44 * @flags: various flags for this line
45 * @name: the name of this GPIO line, such as the output pin of the line on the45 * @name: the name of this GPIO line, such as the output pin of the line on the
46 * chip, a rail or a pin header name on a board, as specified by the gpio46 * chip, a rail or a pin header name on a board, as specified by the gpio
47 * chip, may be NULL47 * chip, may be empty
48 * @consumer: a functional name for the consumer of this GPIO line as set by48 * @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 may49 * whatever is using it, will be empty if there is no current user but may
50 * also be NULL if the consumer doesn't set this up50 * also be empty if the consumer doesn't set this up
51 */51 */
52struct gpioline_info {52struct gpioline_info {
53 __u32 line_offset;53 __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