drivers: mfd: npm6001: Add separate initialization priority

Enables setting the initialization priority of the nPM6001 independently
from other MFDs.

Signed-off-by: Bernt Johan Damslora <Bernt.Damslora@nordicsemi.no>
This commit is contained in:
Bernt Johan Damslora 2023-10-02 17:06:54 +02:00 committed by Fabio Baltieri
parent d8606727df
commit 950e25578a
2 changed files with 11 additions and 1 deletions

View file

@ -8,3 +8,13 @@ config MFD_NPM6001
select I2C
help
Enable the Nordic nPM6001 PMIC multi-function device driver
if MFD_NPM6001
config MFD_NPM6001_INIT_PRIORITY
int "nPM6001 MFD initialization priority"
default MFD_INIT_PRIORITY
help
Multi-function device initialization priority for nPM6001.
endif # MFD_NPM6001

View file

@ -87,6 +87,6 @@ static int mfd_npm6001_init(const struct device *dev)
}; \
\
DEVICE_DT_INST_DEFINE(inst, mfd_npm6001_init, NULL, NULL, &config##inst, POST_KERNEL, \
CONFIG_MFD_INIT_PRIORITY, NULL);
CONFIG_MFD_NPM6001_INIT_PRIORITY, NULL);
DT_INST_FOREACH_STATUS_OKAY(MFD_NPM6001_DEFINE)