[PoC 043/241] global: Migrate CONFIG_FSL_PMIC_MODE to CFG

Tom Rini
2022-11-20T13:41:48Z

drivers/power/power_fsl.c | 2 +-
include/configs/mx51evk.h | 2 +-
scripts/config_whitelist.txt | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/power/power_fsl.c b/drivers/power/power_fsl.c
index 9ead212f380e..9dc930fb305a 100644
--- a/drivers/power/power_fsl.c
+++ b/drivers/power/power_fsl.c
@@ -41,7 +41,7 @@ int pmic_init(unsigned char bus)
p->interface = PMIC_SPI;
p->hw.spi.cs = CFG_FSL_PMIC_CS;
p->hw.spi.clk = CFG_FSL_PMIC_CLK;
- p->hw.spi.mode = CONFIG_FSL_PMIC_MODE;
+ p->hw.spi.mode = CFG_FSL_PMIC_MODE;
p->hw.spi.bitlen = CFG_FSL_PMIC_BITLEN;
p->hw.spi.flags = SPI_XFER_BEGIN | SPI_XFER_END;
p->hw.spi.prepare_tx = pmic_spi_prepare_tx;
diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h
index 15bc4c706fdd..740e357e00e9 100644
--- a/include/configs/mx51evk.h
+++ b/include/configs/mx51evk.h
@@ -24,7 +24,7 @@
#define CFG_FSL_PMIC_BUS 0
#define CFG_FSL_PMIC_CS 0
#define CFG_FSL_PMIC_CLK 2500000
-#define CONFIG_FSL_PMIC_MODE (SPI_MODE_0 | SPI_CS_HIGH)
+#define CFG_FSL_PMIC_MODE (SPI_MODE_0 | SPI_CS_HIGH)
#define CFG_FSL_PMIC_BITLEN 32

/*
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index a6598b01bb61..8ba453991703 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -43,7 +43,7 @@ CFG_FSL_PMIC_BITLEN
CFG_FSL_PMIC_BUS
CFG_FSL_PMIC_CLK
CFG_FSL_PMIC_CS
-CONFIG_FSL_PMIC_MODE
+CFG_FSL_PMIC_MODE
CONFIG_FSL_SDHC_V2_3
CONFIG_FSL_SERDES1
CONFIG_FSL_SERDES2
--
2.25.1