From: Thierry Reding Date: Fri, 7 Nov 2014 16:17:41 +0000 (+0100) Subject: drm/tegra: dsi: Replace 1000000000UL by NSEC_PER_SEC X-Git-Tag: submit/tizen/20160607.132125~3357^2~61^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=369bc65b6b996595310a4c6a73367332fc32b4df;p=sdk%2Femulator%2Femulator-kernel.git drm/tegra: dsi: Replace 1000000000UL by NSEC_PER_SEC Using the symbolic constant instantly provides a lot more context. Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index 6646fa2..2f12258 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)