Re: [PATCH v2 1/4] power: supply: add support for max77759 fuel gauge

From: Christophe JAILLET
Date: Tue Jan 07 2025 - 13:11:23 EST


Le 02/01/2025 à 12:15, Thomas Antoine via B4 Relay a écrit :
From: Thomas Antoine <t.antoine@xxxxxxxxxxxx>

The interface of the Maxim max77759 fuel gauge has a lot of common with the
Maxim max1720x. The major difference is the lack of non-volatile memory
slave address. No slave is available at address 0xb of the i2c bus, which
is coherent with the following driver from google: line 5836 disables
non-volatile memory for m5 gauge.

Hi,

...

+ ret = max1720x_get_rsense(dev, info);
if (ret)
- return dev_err_probe(dev, ret, "Failed to probe nvmem\n");
+ return dev_err_probe(dev, ret, "Failed to get RSense");

Missing ending \n.

bat = devm_power_supply_register(dev, &max1720x_bat_desc, &psy_cfg);
if (IS_ERR(bat))

...

CJ