power: supply: bq27xxx: move overtemp tests to a switch statement.
authorChris Lapa <chris@lapa.com.au>
Mon, 9 Jan 2017 00:47:35 +0000 (11:47 +1100)
committerSebastian Reichel <sre@kernel.org>
Tue, 10 Jan 2017 02:45:38 +0000 (03:45 +0100)
commite839a448814584e73a79c1fa76caace2ef42e0ee
tree679912737b0a8eec0a81f2cf656c92502bc30d93
parent7cbad9fa5fe5fe119575acd2ed0a0e374339029b
power: supply: bq27xxx: move overtemp tests to a switch statement.

This is done for readability as the upcoming commits will add a lot of
cases.

tested: no

Signed-off-by: Chris Lapa <chris@lapa.com.au>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Reviewed-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/bq27xxx_battery.c