Hi,ACK
On Tue, Jan 05, 2021 at 02:29:49PM -0600, Ricardo Rivera-Matos wrote:
The BQ256XX family of devices are highly integrated buck chargerschangelog needs to be below --- btw.
for single cell batteries.
Signed-off-by: Ricardo Rivera-Matos <r-rivera-matos@xxxxxx>
v9 - resolves two warnings issued by kernel test robot
(so that git am does not pick it up :))
ACK, understood.
---If you want to change psy_cfg, you need to pass it by reference
[...]
+ ret = bq256xx_parse_dt(bq, psy_cfg, dev);
+ if (ret) {
+ dev_err(dev, "Failed to read device tree properties%d\n", ret);
+ return ret;
+ }
[...]
and not by value (i.e. use &psy_cfg here and a pointer as argument
of bq256xx_parse_dt). Providing psy_cfg like this creates a copy
of the struct.
ACK, I did not, my mistake. v10 will get tested on the actual hardware.
Did you runtime test this version? It should crash when accessing
the properties because of psy_cfg.drv_data being NULL.
Thanks,
[...]Here it's also better to just provide the address of psy_cfg
+ ret = bq256xx_power_supply_init(bq, psy_cfg, dev);
+ if (ret) {
+ dev_err(dev, "Failed to register power supply\n");
+ return ret;
+ }
(but not strictly necessary).
-- Sebastian