pinctrl: cy8c95x0: Implement ->gpio_request_enable() and ->gpio_set_direction()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Oct 2022 12:52:21 +0000 (15:52 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Oct 2022 09:56:16 +0000 (11:56 +0200)
commita039dfb96ad24666d6947b8ab631449441152efe
treec013e9132e76b5320b80e9f86222b1b49326a9e8
parent9b3148d6d626d484fd038d25409602190d89eee7
pinctrl: cy8c95x0: Implement ->gpio_request_enable() and ->gpio_set_direction()

Without ->gpio_request_enable() and ->gpio_set_direction()
callbacks it's not possible to mux GPIO via standard GPIO
interfaces (like `gpioget` or `gpioset` tools in user space).

Implement those functions to fill the above mentioned gap.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221010125221.28275-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-cy8c95x0.c