diff options
author | Quentin Schulz <quentin.schulz@bootlin.com> | 2018-02-28 11:35:58 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2018-03-09 16:51:06 +0100 |
commit | 648badd797c762a713b48afc3b67d56abdd0073b (patch) | |
tree | 0692c1a32f6516bd9c7807c0f11ba48ffd7b9e88 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | d47c1e4b2f51e81683b087480401b9b42b2a58fd (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 <quentin.schulz@bootlin.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
[updated POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN write property to use
the introduced set_max_voltage() callback]
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions