projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
369bc65
)
drm/tegra: dsi: Replace 1000000 by USEC_PER_SEC
author
Thierry Reding
<treding@nvidia.com>
Thu, 13 Nov 2014 13:32:06 +0000
(14:32 +0100)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 13 Nov 2014 15:12:41 +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
|
blame
|
history
diff --git
a/drivers/gpu/drm/tegra/dsi.c
b/drivers/gpu/drm/tegra/dsi.c
index 2f12258ecd7404568750e6f71937dedbb9041501..8940360ccc9c4dca269d48c85abd581305eb8c88 100644
(file)
--- 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