diff options
author | Tom Rini <trini@konsulko.com> | 2022-12-04 10:14:10 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-12-23 10:15:13 -0500 |
commit | e1d6c16d80cbe510f524d68a1879ed0fab26a80b (patch) | |
tree | 08da5bd95cc3ab45489d749e2652ca6e99a327f6 /board | |
parent | 92a5c899987301f6b53ef37e46ea96ce9abb752e (diff) |
librem5: Rename CONFIG_POWER_BD71837 symbols
Rename the CONFIG_POWER_BD71837_I2C_* symbols to not have the CONFIG
prefix and be local to the file they are used in.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/purism/librem5/spl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/board/purism/librem5/spl.c b/board/purism/librem5/spl.c index 1bfd948806f..1a203b45999 100644 --- a/board/purism/librem5/spl.c +++ b/board/purism/librem5/spl.c @@ -322,6 +322,8 @@ void disable_charger_bq25895(void) } #define I2C_PMIC 0 +#define POWER_BD71837_I2C_BUS 0 +#define POWER_BD71837_I2C_ADDR 0x4B int power_bd71837_init(unsigned char bus) { @@ -336,7 +338,7 @@ int power_bd71837_init(unsigned char bus) p->name = name; p->interface = I2C_PMIC; p->number_of_regs = BD718XX_MAX_REGISTER; - p->hw.i2c.addr = CONFIG_POWER_BD71837_I2C_ADDR; + p->hw.i2c.addr = POWER_BD71837_I2C_ADDR; p->hw.i2c.tx_num = 1; p->bus = bus; @@ -357,10 +359,10 @@ int power_init_board(void) /* * Init PMIC */ - rv = power_bd71837_init(CONFIG_POWER_BD71837_I2C_BUS); + rv = power_bd71837_init(POWER_BD71837_I2C_BUS); if (rv) { log_err("%s: power_bd71837_init(%d) error %d\n", __func__, - CONFIG_POWER_BD71837_I2C_BUS, rv); + POWER_BD71837_I2C_BUS, rv); goto out; } |