pm: device: add missing return code to pm_device_state_get
-ENOSYS can be returned if the device does not support PM. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
6d7e864714
commit
a9af6b023a
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ const char *pm_device_state_str(enum pm_device_state state);
|
|||
* @retval -ENOTSUP If requested state is not supported.
|
||||
* @retval -EALREADY If device is already at the requested state.
|
||||
* @retval -EBUSY If device is changing its state.
|
||||
|
||||
* @retval -ENOSYS If device does not support PM.
|
||||
* @retval Errno Other negative errno on failure.
|
||||
*/
|
||||
int pm_device_state_set(const struct device *dev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue