mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 05:34:30 +08:00
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>
This commit is contained in:
parent
2bd8830dfb
commit
1c01712ac4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user