pinctrl: sh-pfc: Rollback to mux if required when the gpio is freed
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 8 Aug 2019 06:19:03 +0000 (15:19 +0900)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 23 Aug 2019 07:08:10 +0000 (09:08 +0200)
commit8a0cc47ccc7c17826c669787f95ab7e5efb37444
tree4cf08c95071155441c1b401bc80528394d468f22
parentb13431ed6eab808affbd796a7c8caf05c7ae4cdd
pinctrl: sh-pfc: Rollback to mux if required when the gpio is freed

Some drivers require switching between function and gpio at run-time.
Allow to roll back from gpio to mux when the gpio is freed.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/sh-pfc/pinctrl.c