gpiolib: devprop: Warn if gpio-line-names is too long
authorStephen Boyd <swboyd@chromium.org>
Thu, 23 Apr 2020 20:34:16 +0000 (13:34 -0700)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 24 Apr 2020 07:10:01 +0000 (09:10 +0200)
commit9784c9963feccd8dede924dbc0f8b1c64506e646
treec7378f6790b977625d708bec4a529f3022d7ae5c
parentaa58a21ae37894d456a2f91a37e9fd71ad4aa27e
gpiolib: devprop: Warn if gpio-line-names is too long

Some DT authors (including myself) have messed up the length of
gpio-line-names and made it longer than it should be. Add a warning here
so that developers can figure out that they've messed up their DT and
should fix it.

Cc: Alexandru M Stan <amstan@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib-devprop.c