]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: devicetree: Use strlen() instead of hardcoded number
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 31 Jul 2019 13:29:15 +0000 (15:29 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Aug 2019 11:29:29 +0000 (13:29 +0200)
commitc2c2777711c02b47e8864f3cec776806e112bdd4
tree0db183544fa9c2700a1eacb6d64d84f8d8447270
parent019b32b44e176e90be6394232c18a2d6278fb493
pinctrl: devicetree: Use strlen() instead of hardcoded number

Improve readability by replacing a hardcoded number requiring a comment
by strlen().

Gcc is smart enough to evaluate the length of a constant string at
compile-time.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20190731132917.17607-2-geert+renesas@glider.be
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/devicetree.c