summaryrefslogtreecommitdiffstats
path: root/drivers/power/axp20x_usb_power.c
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2016-05-31 13:44:59 -0500
committerSebastian Reichel <sre@kernel.org>2016-06-10 02:45:12 +0200
commit5630b4334c676ff60d9613e7b6a4cc89cb562acb (patch)
tree16a705e2b4a7279a58534c825c80d31b3c0bb97c /drivers/power/axp20x_usb_power.c
parent5d9e01b31dc06a466ef2d35620d93a6c9941b387 (diff)
downloadlinux-5630b4334c676ff60d9613e7b6a4cc89cb562acb.tar.bz2
power_supply: bq27xxx_battery: Index register numbers by enum
Currently we use tables to map from register function to register number, these tables assume the enum used to describe the register function and index the register number is ordered to match the enum order. Index the register numbers by the enum instead. This also removes the need to comment each value with its function. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/axp20x_usb_power.c')
0 files changed, 0 insertions, 0 deletions