]> git.baikalelectronics.ru Git - uboot.git/commitdiff
global: Migrate CONFIG_POWER_LTC3676_I2C_ADDR to CFG
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:13:34 +0000 (10:13 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 15:14:52 +0000 (10:14 -0500)
Perform a simple rename of CONFIG_POWER_LTC3676_I2C_ADDR to CFG_POWER_LTC3676_I2C_ADDR

Signed-off-by: Tom Rini <trini@konsulko.com>
board/gateworks/gw_ventana/gw_ventana_spl.c
drivers/power/pmic/pmic_ltc3676.c
include/configs/gw_ventana.h

index e85a00954cee6db7924626d83c068955d253901f..6ad994af1c64dd433103166ec03139283208d20f 100644 (file)
@@ -851,8 +851,8 @@ void setup_pmic(void)
        }
 
        /* configure LTC3676 PMIC */
-       else if (!i2c_probe(CONFIG_POWER_LTC3676_I2C_ADDR)) {
-               debug("probed LTC3676@0x%x\n", CONFIG_POWER_LTC3676_I2C_ADDR);
+       else if (!i2c_probe(CFG_POWER_LTC3676_I2C_ADDR)) {
+               debug("probed LTC3676@0x%x\n", CFG_POWER_LTC3676_I2C_ADDR);
                power_ltc3676_init(i2c_pmic);
                p = pmic_get("LTC3676_PMIC");
                if (!p || pmic_probe(p))
index 00c3e201cd561204b4db1989316de43abaa2f0bd..af94f37b0f108f79c9c10d1f850a0a137f4913a7 100644 (file)
@@ -23,7 +23,7 @@ int power_ltc3676_init(unsigned char bus)
        p->name = name;
        p->interface = PMIC_I2C;
        p->number_of_regs = LTC3676_NUM_OF_REGS;
-       p->hw.i2c.addr = CONFIG_POWER_LTC3676_I2C_ADDR;
+       p->hw.i2c.addr = CFG_POWER_LTC3676_I2C_ADDR;
        p->hw.i2c.tx_num = 1;
        p->bus = bus;
 
index 0a9dfe736f7d8731e984ebbce8c284d50e820890..85a2ad21dc0346b36e4770087d4e06eb67be23b8 100644 (file)
@@ -31,7 +31,7 @@
  * PMIC
  */
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
-#define CONFIG_POWER_LTC3676_I2C_ADDR  0x3c
+#define CFG_POWER_LTC3676_I2C_ADDR  0x3c
 
 /* Various command support */