power: supply: sbs-battery: correct capacity mode selection bits
authorMichael Heinemann <posted@heine.so>
Fri, 7 Jul 2017 14:23:54 +0000 (16:23 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 24 Jul 2017 12:08:52 +0000 (14:08 +0200)
commit0188155a234bf77c7588bdedf3b77cc87bfeb7df
tree7c2ef7b3d5876525ac70725a8e88838e6eb1b4eb
parent520eccdfe187591a51ea9ab4c1a024ae4d0f68d9
power: supply: sbs-battery: correct capacity mode selection bits

The capacity mode bit is bit 15. Currently it is written as
default initialized enum and never shifted. This leads to
a behaviour where the BATTERY_MODE is not correctly
recognized and set again.

This commit initializes the enum accordingly.

Signed-off-by: Michael Heinemann <committed@heine.so>
Tested-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/sbs-battery.c