[PoC 039/241] global: Migrate CONFIG_FSL_PMIC_BITLEN to CFG

Tom Rini trini at konsulko.com
Sun Nov 20 14:30:30 CET 2022


Signed-off-by: Tom Rini <trini at konsulko.com>
---
 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 9bb7e39f2cc2..eace4dd7e433 100644
--- a/drivers/power/power_fsl.c
+++ b/drivers/power/power_fsl.c
@@ -42,7 +42,7 @@ int pmic_init(unsigned char bus)
 	p->hw.spi.cs = CONFIG_FSL_PMIC_CS;
 	p->hw.spi.clk = CONFIG_FSL_PMIC_CLK;
 	p->hw.spi.mode = CONFIG_FSL_PMIC_MODE;
-	p->hw.spi.bitlen = CONFIG_FSL_PMIC_BITLEN;
+	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;
 #elif defined(CONFIG_POWER_I2C)
diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h
index 8ab1ee79a79c..d4cca8d516a6 100644
--- a/include/configs/mx51evk.h
+++ b/include/configs/mx51evk.h
@@ -25,7 +25,7 @@
 #define CONFIG_FSL_PMIC_CS	0
 #define CONFIG_FSL_PMIC_CLK	2500000
 #define CONFIG_FSL_PMIC_MODE	(SPI_MODE_0 | SPI_CS_HIGH)
-#define CONFIG_FSL_PMIC_BITLEN	32
+#define CFG_FSL_PMIC_BITLEN	32
 
 /*
  * MMC Configs
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 0a0be8f05f00..b5f3eb1236a1 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -39,7 +39,7 @@ CFG_FSL_CPLD
 CFG_FSL_ESDHC_PIN_MUX
 CFG_FSL_FM_10GEC_REGULAR_NOTATION
 CFG_FSL_ISBC_KEY_EXT
-CONFIG_FSL_PMIC_BITLEN
+CFG_FSL_PMIC_BITLEN
 CONFIG_FSL_PMIC_BUS
 CONFIG_FSL_PMIC_CLK
 CONFIG_FSL_PMIC_CS
-- 
2.25.1



More information about the U-Boot mailing list