pinctrl: meson: fix incorrect usage of ENOSYS
Subsystems (3)
Jerome Brunet
reviewerPATCH 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.
Signed-off-by Jerome Brunet <[email protected]>
--- drivers/pinctrl/meson/pinctrl-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/meson/pinctrl-meson.c +1 -1
@@ -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
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.
Signed-off-by Jerome Brunet <[email protected]>
Patch applied.
Yours,
Linus Walleij