summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@bootlin.com>2018-02-28 13:35:58 +0300
committerSebastian Reichel <sre@kernel.org>2018-03-09 18:51:06 +0300
commit648badd797c762a713b48afc3b67d56abdd0073b (patch)
tree0692c1a32f6516bd9c7807c0f11ba48ffd7b9e88 /init
parentd47c1e4b2f51e81683b087480401b9b42b2a58fd (diff)
downloadlinux-648badd797c762a713b48afc3b67d56abdd0073b.tar.xz
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 'init')
0 files changed, 0 insertions, 0 deletions