projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fffdf6
)
drm/tegra: dsi: Replace 1000000000UL by NSEC_PER_SEC
author
Thierry Reding
<treding@nvidia.com>
Fri, 7 Nov 2014 16:17:41 +0000
(17:17 +0100)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 13 Nov 2014 15:12:39 +0000
(16:12 +0100)
Using the symbolic constant instantly provides a lot more context.
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dsi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/dsi.c
b/drivers/gpu/drm/tegra/dsi.c
index 6646fa2adc38255190e3e2009479842b245528ad..2f12258ecd7404568750e6f71937dedbb9041501 100644
(file)
--- 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)