All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] pinctrl: change result for unsupported API
@ 2021-07-30 10:12 Patrick Delaunay
  2021-07-30 10:12 ` [PATCH 2/2] dm: add debug message when failed to select the default pinctrl Patrick Delaunay
  2021-07-31 16:59 ` [PATCH 1/2] pinctrl: change result for unsupported API Simon Glass
  0 siblings, 2 replies; 4+ messages in thread
From: Patrick Delaunay @ 2021-07-30 10:12 UTC (permalink / raw)
  To: u-boot; +Cc: Patrick Delaunay, Simon Glass, U-Boot STM32

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>
---

 include/dm/pinctrl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/dm/pinctrl.h b/include/dm/pinctrl.h
index 695e78ad0d..8b869c4fbf 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
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-31 17:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 10:12 [PATCH 1/2] pinctrl: change result for unsupported API Patrick Delaunay
2021-07-30 10:12 ` [PATCH 2/2] dm: add debug message when failed to select the default pinctrl Patrick Delaunay
2021-07-31 16:59   ` Simon Glass
2021-07-31 16:59 ` [PATCH 1/2] pinctrl: change result for unsupported API Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.