summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/nau8810.c
diff options
context:
space:
mode:
authorJohn Hsu <KCHSU0@nuvoton.com>2019-03-13 14:47:18 +0800
committerMark Brown <broonie@kernel.org>2019-03-13 15:06:53 +0000
commitb517229ca2f7836125be58997808f2803f9ebc86 (patch)
tree9603bfeca7d2f2dbcfe06d57e43b194a95ee5452 /sound/soc/codecs/nau8810.c
parentfa225400758dfc7ccddebf4d990f991a435f7921 (diff)
ASoC: nau8810: use 64-bit arithmetic instead of 32-bit
Add suffix ULL to constant 256 in order to give the compiler complete information about the proper arithmetic to use. Signed-off-by: John Hsu <KCHSU0@nuvoton.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/nau8810.c')
-rw-r--r--sound/soc/codecs/nau8810.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/nau8810.c b/sound/soc/codecs/nau8810.c
index bfd74b86c9d2..e7fd0b2645ea 100644
--- a/sound/soc/codecs/nau8810.c
+++ b/sound/soc/codecs/nau8810.c
@@ -505,7 +505,7 @@ static int nau88l0_calc_pll(unsigned int pll_in,
f2_max = 0;
scal_sel = ARRAY_SIZE(nau8810_mclk_scaler);
for (i = 0; i < ARRAY_SIZE(nau8810_mclk_scaler); i++) {
- f2 = 256 * fs * 4 * nau8810_mclk_scaler[i] / 10;
+ f2 = 256ULL * fs * 4 * nau8810_mclk_scaler[i] / 10;
if (f2 > NAU_PLL_FREQ_MIN && f2 < NAU_PLL_FREQ_MAX &&
f2_max < f2) {
f2_max = f2;