twl4030_charger: split uA calculation into a function.
authorNeilBrown <neil@brown.name>
Thu, 30 Jul 2015 00:11:24 +0000 (10:11 +1000)
committerSebastian Reichel <sre@kernel.org>
Wed, 5 Aug 2015 03:14:43 +0000 (05:14 +0200)
commit3b542f089dcbdcf1c21a01927fbc6d5116af01f6
treeac8469ca7f95f1f8c477bd53cdbf79873f6ad939
parent6e37ec8c77e3e6580cbb844dfeea0fb3970c0a35
twl4030_charger: split uA calculation into a function.

We will need this calculation in other places, so
create functions to map between register value and uA value.

Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/twl4030_charger.c