linux-loongson/sound/soc/mediatek/mt8183
Chen-Yu Tsai bb8d8ba471
ASoC: mediatek: mt8183-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-10-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-06-12 13:45:38 +01:00
..
Makefile ASoC: mediatek: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:23 +09:00
mt8183-afe-clk.c ASoC: mediatek: mt8183: delete some unreachable code 2020-12-11 13:23:02 +00:00
mt8183-afe-clk.h
mt8183-afe-common.h ASoC: mediatek: mt8183: Allow setting shared clocks from machine driver 2022-09-09 18:48:55 +01:00
mt8183-afe-pcm.c ASoC: mediatek: mt8183-afe-pcm: use local dev pointer in driver callbacks 2025-06-12 13:45:38 +01:00
mt8183-da7219-max98357.c ASoC: mediatek: mt8183-da7219-max98357: use inclusive language for SND_SOC_DAIFMT_CBx_CFx 2025-03-03 12:59:26 +00:00
mt8183-dai-adda.c ASoC: mediatek: Commonize ADDA rate transform functions and enums 2024-03-25 14:19:07 +00:00
mt8183-dai-hostless.c
mt8183-dai-i2s.c ASoC: mediatek: mt8183: Remove unnecessary variable assignments 2024-11-08 13:33:06 +00:00
mt8183-dai-pcm.c ASoC: mediatek: use helper function 2023-01-31 11:05:02 +00:00
mt8183-dai-tdm.c ASoC: mediatek: mt8183: fix tdm out data is valid on rising edge 2019-08-28 11:50:33 +01:00
mt8183-interconnection.h
mt8183-mt6358-ts3a227-max98357.c ASoC: mediatek: mt8183-mt6358-ts3a227-max98357: use inclusive language for SND_SOC_DAIFMT_CBx_CFx 2025-03-03 12:59:27 +00:00
mt8183-reg.h ASoC: mediatek: mt8183: fix tdm out data is valid on rising edge 2019-08-28 11:50:33 +01:00