This reverts commit cabbd916cf. This is considered to be useful enough that it should be restored as a stable Zephyr API. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
cabbd916cf