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:
Gerard Marull-Paretas 2021-10-29 16:09:18 +02:00 committed by Carles Cufí
commit a9af6b023a

View file

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