pinctrl: at91-pio4: Add persist state case in config
authorRyan Wanner <Ryan.Wanner@microchip.com>
Fri, 7 Oct 2022 15:16:47 +0000 (08:16 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Oct 2022 09:56:16 +0000 (11:56 +0200)
commiteaa4c8f953ba1d2eafb1c961aa9321beb71f21c9
treedfbd82c1137fe5a4e23010f632e7bdf2ee0fed18
parentfcd7631748575706210ef05a787fccbeb4d79898
pinctrl: at91-pio4: Add persist state case in config

Adding persist state case to atmel_conf_pin_config_group_set() function.
After adding configuration support for userspace gpiod api, there was an
extra flag PIN_CONFIG_PERSIST_STATE that was not passed in before.

Based on other drivers like TI drivers, added a switch case and return
ENOTSUPP in that case.

Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Tested-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20221007151647.98222-3-Ryan.Wanner@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91-pio4.c