how to disable SPI, PWM, ADC inside code/zephyr to save current

in nrf/system_off example, to disable uart with suspend 

err = pm_device_action_run(uart, PM_DEVICE_ACTION_SUSPEND);
I want to know how to disable SPI, PWM, ADC?
please send the instructions.
Thanks,
Steve
 
Related