diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2018-01-30 14:19:42 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-01 19:31:49 +0000 |
commit | 29838a5c1e77ed93d41fb9837390e243b9b73518 (patch) | |
tree | e2cb737ec56b05a86613dc29cb5a412edc76d96d /mm/swap_cgroup.c | |
parent | 04e8262ac8c3f59599ea6dfe5cd1a039828ea4ad (diff) | |
download | linux-29838a5c1e77ed93d41fb9837390e243b9b73518.tar.bz2 |
ASoC: rt5514: Fix rt5514_spi_burst_read() buffer passing
rt5514_dsp_voice_wake_up_put() passes "(u8 *)&buf" to
rt5514_spi_burst_read(), where the cast is needed to silence a compiler
warning:
sound/soc/codecs/rt5514.c: In function ‘rt5514_dsp_voice_wake_up_put’:
sound/soc/codecs/rt5514.c:357: warning: passing argument 2 of ‘rt5514_spi_burst_read’ from incompatible pointer type
However, as the variable is declared as an array ("u8 buf[8]"), the
function should just pass "buf" instead.
Fixes: fc9cab05837639ce ("ASoC: rt5514: The DSP clock can be calibrated by the other clock source")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'mm/swap_cgroup.c')
0 files changed, 0 insertions, 0 deletions