gpiolib: Pass gpio_desc to gpio_set_config()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 25 Mar 2020 10:04:38 +0000 (11:04 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 27 Mar 2020 21:38:11 +0000 (22:38 +0100)
commit83522358438dd9de8567991f7366db510b3eb433
treeac4a84a8dd248f1f90a8cca3bf6579709d7454ef
parent8ced32ffadc857eaa45d62c0c5a34cf6f37168ea
gpiolib: Pass gpio_desc to gpio_set_config()

All callers of gpio_set_config() have to convert a gpio_desc to a
gpio_chip and offset.  Avoid these duplicated conversion steps by
letting gpio_set_config() take a gpio_desc pointer directly.

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