Skip to content
Commit ae935dcc authored by Peter Bigot's avatar Peter Bigot Committed by Carles Cufi
Browse files

device_pm: correct nop documented behavior



The device_pm_control_nop function is documented to always return zero
regardless of operation.  However, when device_get_power_state() is
invoked with this control function it returns success leaving the
output parameter state unmodified, which may not be a valid device
state.

Document and implement that the nop control function returns -ENOTSUP
always.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent c0fcff9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment