kernel_samsung_a53x/sound/soc/meson
Jerome Brunet 409fe626f9 ASoC: meson: t9015: fix function pointer type mismatch
[ 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>
2024-11-19 08:44:53 +01:00
..
aiu-acodec-ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-codec-ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-encoder-i2s.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-encoder-spdif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-fifo-i2s.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-fifo-spdif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-fifo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu-fifo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aiu.c ASoC: meson: aiu: fix function pointer type mismatch 2024-11-19 08:44:53 +01:00
aiu.h ASoC: meson: aiu: fix function pointer type mismatch 2024-11-19 08:44:53 +01:00
axg-card.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-fifo.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-fifo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-frddr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-pdm.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-spdifin.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-spdifout.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-tdm-formatter.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-tdm-formatter.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-tdm-interface.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
axg-tdm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-tdmin.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-tdmout.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
axg-toddr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
g12a-toacodec.c ASoC: meson: g12a-toacodec: Fix event generation 2024-11-18 12:12:07 +01:00
g12a-tohdmitx.c ASoC: meson: g12a-tohdmitx: Fix event generation for S/PDIF mux 2024-11-18 12:12:07 +01:00
gx-card.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson-card-utils.c ASoC: meson: Use dev_err_probe() helper 2024-11-19 08:44:53 +01:00
meson-card.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson-codec-glue.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson-codec-glue.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
t9015.c ASoC: meson: t9015: fix function pointer type mismatch 2024-11-19 08:44:53 +01:00