]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pinctrl: change result for unsupported API
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 19 Nov 2021 09:02:26 +0000 (10:02 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 1 Dec 2021 18:33:45 +0000 (13:33 -0500)
Use the return value ENOSYS for unsupported API
- pinctrl_generic_set_state
- pinctrl_select_state

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/dm/pinctrl.h

index 695e78ad0de6e70952fbdd4c263c8d0442374670..8b869c4fbfb7d87a307eb10ce5e8cd9b733ac2c0 100644 (file)
@@ -495,7 +495,7 @@ int pinctrl_generic_set_state(struct udevice *pctldev, struct udevice *config);
 static inline int pinctrl_generic_set_state(struct udevice *pctldev,
                                            struct udevice *config)
 {
-       return -EINVAL;
+       return -ENOSYS;
 }
 #endif
 
@@ -512,7 +512,7 @@ int pinctrl_select_state(struct udevice *dev, const char *statename);
 static inline int pinctrl_select_state(struct udevice *dev,
                                       const char *statename)
 {
-       return -EINVAL;
+       return -ENOSYS;
 }
 #endif