clk: tegra: Fix type for m field
authorPeter De Schrijver <pdeschrijver@nvidia.com>
Thu, 23 Feb 2017 10:44:44 +0000 (12:44 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 20 Mar 2017 13:06:09 +0000 (14:06 +0100)
When used as part of fractional ndiv calculations, the current range is
not enough because the denominator of the fraction is multiplied with m.

Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Tested-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk.h

index 6ba82ecffd4d40fdf4a00b366d8aaea5c12e3671..a62ea736398f8b55e9d36ac4ac894f08e579f59b 100644 (file)
@@ -116,7 +116,7 @@ struct tegra_clk_pll_freq_table {
        unsigned long   input_rate;
        unsigned long   output_rate;
        u32             n;
-       u16             m;
+       u32             m;
        u8              p;
        u8              cpcon;
        u16             sdm_data;