Skip to contentSkip to conversation

pinctrl: meson: fix incorrect usage of ENOSYS

PATCH In review Jerome Brunet 2 participants 2 messages Sep 20, 2017 – Sep 21, 2017

Subsystems (3)
lore
Share & tools
lore

Jerome Brunet

author reviewer
#0 lore raw

PATCH 1/1 pinctrl: meson: fix incorrect usage of ENOSYS

ENOSYS is special and should only be used for incorrect syscall number. It is not the case here. let's use ENOTSUPP instead.

---
 drivers/pinctrl/meson/pinctrl-meson.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/meson/pinctrl-meson.c +1 -1
index c9cd54de0449..71bccb7acbf8 100644
@@ -399,7 +399,7 @@ static int meson_pinconf_group_set(struct pinctrl_dev *pcdev,
 static int meson_pinconf_group_get(struct pinctrl_dev *pcdev,
 				   unsigned int group, unsigned long *config)
 {
-	return -ENOSYS;
+	return -ENOTSUPP;
 }
 
 static const struct pinconf_ops meson_pinconf_ops = {
Signature · 1 line
2.13.5
#1 lore raw
Quoted 4 lines · Jerome Brunet

ENOSYS is special and should only be used for incorrect syscall number. It is not the case here. let's use ENOTSUPP instead.

Patch applied.

Yours,
Linus Walleij