diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2019-05-22 21:45:47 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2019-06-04 07:01:41 +0300 |
commit | 4c5681fcc684c762b09435de3e82ffeee7769d21 (patch) | |
tree | da7ff95ab26771014852ea38b4bdfa2edd8d0449 /drivers/cpufreq/imx-cpufreq-dt.c | |
parent | 22a26cc6a51ef73dcfeb64c50513903f6b2d53d8 (diff) | |
download | linux-4c5681fcc684c762b09435de3e82ffeee7769d21.tar.xz |
cpufreq: brcmstb-avs-cpufreq: Fix types for voltage/frequency
What we read back from the register is going to be capped at 32-bits,
and cpufreq_freq_table.frequency is an unsigned int. Avoid any possible
value truncation by using the appropriate return value.
Fixes: de322e085995 ("cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq/imx-cpufreq-dt.c')
0 files changed, 0 insertions, 0 deletions