Character arrays can be considered empty strings (if they are immediately terminated), but they cannot be NULL.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -18,7 +18,7 @@ · 17 unmodified lines | ||
| 18 | 18 | * struct gpiochip_info - Information about a certain GPIO chip |
| 19 | 19 | * @name: the Linux kernel name of this GPIO chip |
| 20 | 20 | * @label: a functional name for this GPIO chip, such as a product |
| 21 | − * number, may be NULL | |
| 21 | + * number, may be empty | |
| 22 | 22 | * @lines: number of GPIO lines on this chip |
| 23 | 23 | */ |
| 24 | 24 | struct gpiochip_info { |
| @@ -44,10 +44,10 @@ struct gpiochip_info { · 19 unmodified lines | ||
| 44 | 44 | * @flags: various flags for this line |
| 45 | 45 | * @name: the name of this GPIO line, such as the output pin of the line on the |
| 46 | 46 | * 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 | |
| 48 | 48 | * @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 | |
| 51 | 51 | */ |
| 52 | 52 | struct gpioline_info { |
| 53 | 53 | __u32 line_offset; |