aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/dsi.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-13 14:32:06 +0100
committerThierry Reding <treding@nvidia.com>2014-11-13 16:12:41 +0100
commit030611ecc5d8b1daf8de110600c8771de45d398d (patch)
tree0acea717e3efd5edc58e84d5d6671c859aeb451e /drivers/gpu/drm/tegra/dsi.c
parentdrm/tegra: dsi: Replace 1000000000UL by NSEC_PER_SEC (diff)
downloadlinux-dev-030611ecc5d8b1daf8de110600c8771de45d398d.tar.xz
linux-dev-030611ecc5d8b1daf8de110600c8771de45d398d.zip
drm/tegra: dsi: Replace 1000000 by USEC_PER_SEC
Using the symbolic constant instantly provides a lot more context. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dsi.c')
-rw-r--r--drivers/gpu/drm/tegra/dsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c
index 2f12258ecd74..8940360ccc9c 100644
--- a/drivers/gpu/drm/tegra/dsi.c
+++ b/drivers/gpu/drm/tegra/dsi.c
@@ -820,7 +820,7 @@ static int tegra_output_dsi_setup_clock(struct tegra_output *output,
/*
* Compute bit clock and round up to the next MHz.
*/
- plld = DIV_ROUND_UP(bclk * 8, 1000000) * 1000000;
+ plld = DIV_ROUND_UP(bclk * 8, USEC_PER_SEC) * USEC_PER_SEC;
/*
* We divide the frequency by two here, but we make up for that by