mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
hwrng: timeriomem - Use us_to_ktime() where appropriate
It is better to replace ns_to_ktime() with us_to_ktime(), which can make the code clearer. Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
efaa2d815a
commit
817fcdbd4c
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ static int timeriomem_rng_probe(struct platform_device *pdev)
|
|||
priv->rng_ops.quality = pdata->quality;
|
||||
}
|
||||
|
||||
priv->period = ns_to_ktime(period * NSEC_PER_USEC);
|
||||
priv->period = us_to_ktime(period);
|
||||
init_completion(&priv->completion);
|
||||
hrtimer_setup(&priv->timer, timeriomem_rng_trigger, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue