summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tegra/dsi.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-11-07 19:17:41 +0300
committerThierry Reding <treding@nvidia.com>2014-11-13 18:12:39 +0300
commit369bc65b6b996595310a4c6a73367332fc32b4df (patch)
treee215c73a5b1bb9b3ac0c08a26caae7bc52f1577a /drivers/gpu/drm/tegra/dsi.c
parent0fffdf6ca9926243db9ca17701fcdc0a38c67d48 (diff)
downloadlinux-369bc65b6b996595310a4c6a73367332fc32b4df.tar.xz
drm/tegra: dsi: Replace 1000000000UL by NSEC_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 6646fa2adc38..2f12258ecd74 100644
--- a/drivers/gpu/drm/tegra/dsi.c
+++ b/drivers/gpu/drm/tegra/dsi.c
@@ -349,7 +349,7 @@ static int tegra_dsi_set_phy_timing(struct tegra_dsi *dsi)
if (rate < 0)
return rate;
- period = DIV_ROUND_CLOSEST(1000000000UL, rate * 2);
+ period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, rate * 2);
err = mipi_dphy_timing_get_default(&timing, period);
if (err < 0)