aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2022-02-01 14:06:50 +0100
committerSebastian Reichel <[email protected]>2022-02-01 14:55:11 +0100
commit7b22a97464b4fd49b27a5eda72229854d0f454fa (patch)
tree40f34e591f980ec1cba51c662ef3e2efba870821 /tools/perf/scripts/python
parentc562a43a460fbd582fba0e7e4d3f09cef48d65b1 (diff)
power: supply: bq25890: Add a bq25890_rw_init_data() helper
On most x86/ACPI devices there is no devicetree to supply the necessary init-data. Instead the firmware already fully initializes the bq25890 charger at boot. Factor out the current code to write all the init_data from devicetree into a new bq25890_rw_init_data() helper which can both write the data to the charger (the current behavior) as well as read it back from the charger into the init_data struct. This is a preparation patch for adding support for x86/ACPI device's where the init_data must be read back from the bq25890 charger. Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions