bq25710: Replace CONFIG_BQ* with CONFIG_CHARGER_BQ*
This fixes a series of copy-paste errors where CONFIG_BQ25710_* was used
instead of CONFIG_CHARGER_BQ25710_*.
BRANCH=none
TEST=buildall passes
#define CONFIG_CHARGER_BQ25710_VSYS_MIN_VOLTAGE_MV 0
#endif
-#ifndef CONFIG_BQ25720_VSYS_UVP_CUSTOM
-#define CONFIG_BQ25720_VSYS_UVP 0
+#ifndef CONFIG_CHARGER_BQ25720_VSYS_UVP_CUSTOM
+#define CONFIG_CHARGER_BQ25720_VSYS_UVP 0
#endif
-#ifndef CONFIG_BQ25720_IDCHG_DEG2_CUSTOM
-#define CONFIG_BQ25720_IDCHG_DEG2 1
+#ifndef CONFIG_CHARGER_BQ25720_IDCHG_DEG2_CUSTOM
+#define CONFIG_CHARGER_BQ25720_IDCHG_DEG2 1
#endif
/*
@@ -431,19 +431,20 @@ static int bq257x0_init_charge_option_4(int chgnum)
if (!IS_ENABLED(CONFIG_CHARGER_BQ25720))
return EC_SUCCESS;
- if (!IS_ENABLED(CONFIG_BQ25720_VSYS_UVP_CUSTOM) &&
- !IS_ENABLED(CONFIG_BQ25720_IDCHG_DEG2_CUSTOM))
+ if (!IS_ENABLED(CONFIG_CHARGER_BQ25720_VSYS_UVP_CUSTOM) &&
+ !IS_ENABLED(CONFIG_CHARGER_BQ25720_IDCHG_DEG2_CUSTOM))
return EC_SUCCESS;
rv = raw_read16(chgnum, BQ25720_REG_CHARGE_OPTION_4, &reg);
if (rv)
return rv;
- if (IS_ENABLED(CONFIG_BQ25720_VSYS_UVP_CUSTOM))
- reg = SET_CO4(VSYS_UVP, CONFIG_BQ25720_VSYS_UVP, reg);
+ if (IS_ENABLED(CONFIG_CHARGER_BQ25720_VSYS_UVP_CUSTOM))
+ reg = SET_CO4(VSYS_UVP, CONFIG_CHARGER_BQ25720_VSYS_UVP, reg);
- if (IS_ENABLED(CONFIG_BQ25720_IDCHG_DEG2_CUSTOM))
- reg = SET_CO4(IDCHG_DEG2, CONFIG_BQ25720_IDCHG_DEG2, reg);
+ if (IS_ENABLED(CONFIG_CHARGER_BQ25720_IDCHG_DEG2_CUSTOM))
+ reg = SET_CO4(IDCHG_DEG2, CONFIG_CHARGER_BQ25720_IDCHG_DEG2,
+ reg);
return raw_write16(chgnum, BQ25720_REG_CHARGE_OPTION_4, reg);
}
