mfd: dln2: Use msecs_to_jiffies for time conversion
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 16 Mar 2015 15:20:49 +0000 (11:20 -0400)
committerLee Jones <lee.jones@linaro.org>
Thu, 26 Mar 2015 14:20:18 +0000 (14:20 +0000)
commit48579a9ae8d2034215d15912c863be36166696ed
treebfa697d57411cbe9c6e4a336e2a0553591319f91
parent1422731dbc14063fc7083cb090108c0d95267361
mfd: dln2: Use msecs_to_jiffies for time conversion

Converting milliseconds to jiffies by "val * HZ / 1000" is technically
OK but msecs_to_jiffies(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: Lee Jones <lee.jones@linaro.org>
drivers/mfd/dln2.c
This page took 0.037592 seconds and 5 git commands to generate.