summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_pci.h
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@bootlin.com>2018-02-28 11:35:58 +0100
committerSebastian Reichel <sre@kernel.org>2018-03-09 16:51:06 +0100
commit648badd797c762a713b48afc3b67d56abdd0073b (patch)
tree0692c1a32f6516bd9c7807c0f11ba48ffd7b9e88 /include/drm/drm_pci.h
parentd47c1e4b2f51e81683b087480401b9b42b2a58fd (diff)
downloadop-kernel-dev-648badd797c762a713b48afc3b67d56abdd0073b.zip
op-kernel-dev-648badd797c762a713b48afc3b67d56abdd0073b.tar.gz
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 'include/drm/drm_pci.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud