lib: onoff: add a config for on-off and build conditionally

Do not build this service unconditionally.

Partial fix of #50654

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-09-26 12:53:00 -04:00 committed by Carles Cufí
commit a81b322828
5 changed files with 12 additions and 1 deletions

View file

@ -3,6 +3,7 @@
menuconfig REGULATOR
bool "Regulator drivers"
select ONOFF
help
Include drivers for current/voltage regulators in system config