]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/tegra: dsi: Replace 1000000 by USEC_PER_SEC
authorThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 13:32:06 +0000 (14:32 +0100)
committerThierry 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

index 2f12258ecd7404568750e6f71937dedbb9041501..8940360ccc9c4dca269d48c85abd581305eb8c88 100644 (file)
@@ -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