ab8500_fg: use jiffies_to_msecs for jiffies conversion
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 9 Feb 2015 17:21:05 +0000 (12:21 -0500)
committerSebastian Reichel <sre@kernel.org>
Wed, 25 Feb 2015 21:47:12 +0000 (22:47 +0100)
commit298631e1ecad278f9d442062035d29d9787b6994
tree68fd3d45270b14af8d8fb56f3f41871312b71e02
parent5ae6e2a8f8008dffec3f9d48337ba0bc430a1211
ab8500_fg: use jiffies_to_msecs for jiffies conversion

Converting jiffies to milliseconds by "val * 1000 / HZ" is technically
OK but jiffies_to_msecs(val) is the cleaner solution and handles all
corner cases correctly. This is a minor API consolidation only and
should make things more readable.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/ab8500_fg.c