OSDN Git Service

gpio: of: Extract of_gpiochip_add_hog()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 20 Feb 2020 13:01:48 +0000 (14:01 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 21 Feb 2020 16:07:47 +0000 (17:07 +0100)
commitbc21077e084b80c22072a40d32beb24ea33938ec
treedf92dbbb652f8d2fdb2f802f05846439652692e8
parentf8850206e160bfe35de9ca2e726ab6d6b8cb77dd
gpio: of: Extract of_gpiochip_add_hog()

Extract the code to add all GPIO hogs of a gpio-hog node into its own
function, so it can be reused.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20200220130149.26283-2-geert+renesas@glider.be
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-of.c