aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorQuentin Schulz <[email protected]>2018-02-28 11:35:58 +0100
committerSebastian Reichel <[email protected]>2018-03-09 16:51:06 +0100
commit648badd797c762a713b48afc3b67d56abdd0073b (patch)
tree0692c1a32f6516bd9c7807c0f11ba48ffd7b9e88 /tools/perf/scripts/python/export-to-sqlite.py
parentd47c1e4b2f51e81683b087480401b9b42b2a58fd (diff)
power: supply: axp20x_battery: use data struct for variant specific code
We used to use IDs to select a function or a feature depending on the variant. It's easier to maintain the code by adding data structure storing the few differences between variants so that we don't add a pile of if conditions. Let's use this data structure and update the code to use it. Signed-off-by: Quentin Schulz <[email protected]> Reviewed-by: Chen-Yu Tsai <[email protected]> [updated POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN write property to use the introduced set_max_voltage() callback] Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions