Commit 165be3c2 authored by Jerome Brunet's avatar Jerome Brunet Committed by Mark Brown

ASoC: meson: fix do_div warning in spdifin

Even if this spdif input driver is only supposed to be used on 64bits
platform, there is possible problem with 32bits and do_div, as reported
by the kbuild robot. Just fix it.

Fixes: 5ce56583 ("ASoC: meson: add axg spdif input")
Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f231c34c
...@@ -146,8 +146,8 @@ static void axg_spdifin_write_mode_param(struct regmap *map, int mode, ...@@ -146,8 +146,8 @@ static void axg_spdifin_write_mode_param(struct regmap *map, int mode,
unsigned int base_reg, unsigned int base_reg,
unsigned int width) unsigned int width)
{ {
unsigned int offset = mode, rem; uint64_t offset = mode;
unsigned int reg, shift; unsigned int reg, shift, rem;
rem = do_div(offset, num_per_reg); rem = do_div(offset, num_per_reg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment