]> 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)
commite098481167689238ed28282a73802f71420b06c5
tree57ccade43ec09697a2957a97d5455470019c469f
parent218e56b13831306b50f0265442dd017ddfde0e8e
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