summaryrefslogtreecommitdiffstats
path: root/drivers/power/twl4030_madc_battery.c
diff options
context:
space:
mode:
authorNicholas Mc Guire2015-02-09 18:21:05 +0100
committerSebastian Reichel2015-02-25 22:47:12 +0100
commit298631e1ecad278f9d442062035d29d9787b6994 (patch)
tree68fd3d45270b14af8d8fb56f3f41871312b71e02 /drivers/power/twl4030_madc_battery.c
parentab8500_fg: match return type of wait_for_completion_timeout (diff)
downloadkernel-qcow2-linux-298631e1ecad278f9d442062035d29d9787b6994.tar.gz
kernel-qcow2-linux-298631e1ecad278f9d442062035d29d9787b6994.tar.xz
kernel-qcow2-linux-298631e1ecad278f9d442062035d29d9787b6994.zip
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>
Diffstat (limited to 'drivers/power/twl4030_madc_battery.c')
0 files changed, 0 insertions, 0 deletions