]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: stm32: return proper error code in pin_config_set
authorAlexandre Torgue <alexandre.torgue@st.com>
Mon, 15 Jun 2020 12:59:50 +0000 (14:59 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 20 Jun 2020 21:08:00 +0000 (23:08 +0200)
commitf45347b3d9ce0173678627112c3f15386ebb4e2a
treedc6179f66c7b337874573cf44310efe921db6b1b
parentbf96a9a5b3fce41f80c368427094d90f18eaf967
pinctrl: stm32: return proper error code in pin_config_set

".pin_config_set" or ".pin_config_group_set" can be called with a
configuration not supported (i.e. PIN_CONFIG_PERSIST_STATE). In this case,
it is more suitable to return -ENOTSUPP instead of -EINVAL.

Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Link: https://lore.kernel.org/r/20200615125951.28008-2-alexandre.torgue@st.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32.c