linux-loongson/sound/soc/mediatek/mt8173
Chen-Yu Tsai b2c090c9f6
ASoC: mediatek: mt8173-afe-pcm: use local dev pointer in driver callbacks
The probe and remove functions in the mt8183-afe-pcm driver repeatedly uses
`&pdev->dev` for |struct device *|, but then assigns this value to
`afe->dev` and uses that in other places in the same function.

Store `&pdev->dev` in a local pointer and use that exclusively to avoid
the numerous dereferences and to make the code more consistent. Lines
are reflowed where it makes sense.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://patch.msgid.link/20250612074901.4023253-9-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-06-12 13:45:37 +01:00
..
Makefile
mt8173-afe-common.h
mt8173-afe-pcm.c ASoC: mediatek: mt8173-afe-pcm: use local dev pointer in driver callbacks 2025-06-12 13:45:37 +01:00
mt8173-max98090.c ASoC: mediatek: mt8173-max98090: use inclusive language for SND_SOC_DAIFMT_CBx_CFx 2025-03-03 12:59:23 +00:00
mt8173-rt5650-rt5514.c ASoC: mediatek: mt8173-rt5650-rt5514: use inclusive language for SND_SOC_DAIFMT_CBx_CFx 2025-03-03 12:59:25 +00:00
mt8173-rt5650-rt5676.c ASoC: mediatek: mt8173-rt5650-rt5676: use inclusive language for SND_SOC_DAIFMT_CBx_CFx 2025-03-03 12:59:24 +00:00
mt8173-rt5650.c ASoC: mediatek: mt8173-rt5650: use inclusive language for SND_SOC_DAIFMT_CBx_CFx 2025-03-03 12:59:22 +00:00