mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
max17042: propagate of_node to power supply device
This commit is contained in:
parent
1e7c933fa4
commit
57c8ea9f76
1 changed files with 1 additions and 0 deletions
|
@ -1053,6 +1053,7 @@ static int max17042_probe(struct i2c_client *client,
|
|||
|
||||
i2c_set_clientdata(client, chip);
|
||||
psy_cfg.drv_data = chip;
|
||||
psy_cfg.of_node = dev->of_node;
|
||||
|
||||
/* When current is not measured,
|
||||
* CURRENT_NOW and CURRENT_AVG properties should be invisible. */
|
||||
|
|
Loading…
Add table
Reference in a new issue