]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: uapi: clarify the meaning of 'empty' char arrays
authorKent Gibson <warthog618@gmail.com>
Mon, 5 Oct 2020 07:03:29 +0000 (15:03 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 28 Oct 2020 14:46:47 +0000 (15:46 +0100)
commit8252b888aaf575af25c41a796111f0da6fdc422b
tree57ccade43ec09697a2957a97d5455470019c469f
parent5364d8cca65c6db2adaf229678ea2d6533ac57d9
gpio: uapi: clarify the meaning of 'empty' char arrays

Clarify that a char array containing a string is considered 'empty' if
the first character is the null terminator. The remaining characters
are not relevant to this determination.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20201005070329.21055-6-warthog618@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/uapi/linux/gpio.h