409fe626f9
[ Upstream commit 5ad992c71b6a8e8a547954addc7af9fbde6ca10a ] clang-16 warns about casting functions to incompatible types, as is done here to call clk_disable_unprepare: sound/soc/meson/t9015.c:274:4: error: cast from 'void (*)(struct clk *)' to 'void (*)(void *)' converts to incompatible function type [-Werror,-Wcast-function-type-strict] 274 | (void(*)(void *))clk_disable_unprepare, The pattern of getting, enabling and setting a disable callback for a clock can be replaced with devm_clk_get_enabled(), which also fixes this warning. Fixes: 33901f5b9b16 ("ASoC: meson: add t9015 internal DAC driver") Reported-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Reviewed-by: Justin Stitt <justinstitt@google.com> Link: https://msgid.link/r/20240213215807.3326688-3-jbrunet@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org> |
||
---|---|---|
.. | ||
aiu-acodec-ctrl.c | ||
aiu-codec-ctrl.c | ||
aiu-encoder-i2s.c | ||
aiu-encoder-spdif.c | ||
aiu-fifo-i2s.c | ||
aiu-fifo-spdif.c | ||
aiu-fifo.c | ||
aiu-fifo.h | ||
aiu.c | ||
aiu.h | ||
axg-card.c | ||
axg-fifo.c | ||
axg-fifo.h | ||
axg-frddr.c | ||
axg-pdm.c | ||
axg-spdifin.c | ||
axg-spdifout.c | ||
axg-tdm-formatter.c | ||
axg-tdm-formatter.h | ||
axg-tdm-interface.c | ||
axg-tdm.h | ||
axg-tdmin.c | ||
axg-tdmout.c | ||
axg-toddr.c | ||
g12a-toacodec.c | ||
g12a-tohdmitx.c | ||
gx-card.c | ||
Kconfig | ||
Makefile | ||
meson-card-utils.c | ||
meson-card.h | ||
meson-codec-glue.c | ||
meson-codec-glue.h | ||
t9015.c |