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)
commit2f84a2de539cc4301a332c2c76473fc25baf21b7
tree57ccade43ec09697a2957a97d5455470019c469f
parentc303c51c87a61ace7330b5e0217468b1b8f98a75
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