diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-11-19 10:02:26 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-12-01 13:33:45 -0500 |
commit | 1c01712ac409b06feb36dcac13285e621a700c4e (patch) | |
tree | e0ed9255357ff4f94adcf9d0bee712e97ff24489 | |
parent | 2bd8830dfb882c9878dc77bd9ba56b73ea6c323a (diff) | |
download | u-boot-1c01712ac409b06feb36dcac13285e621a700c4e.zip u-boot-1c01712ac409b06feb36dcac13285e621a700c4e.tar.gz u-boot-1c01712ac409b06feb36dcac13285e621a700c4e.tar.bz2 |
pinctrl: change result for unsupported API
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>
-rw-r--r-- | include/dm/pinctrl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h index 695e78a..8b869c4 100644 --- a/include/dm/pinctrl.h +++ b/include/dm/pinctrl.h @@ -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 |