mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +00:00
![]() 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> |
||
---|---|---|
.. | ||
Makefile | ||
mt8183-afe-clk.c | ||
mt8183-afe-clk.h | ||
mt8183-afe-common.h | ||
mt8183-afe-pcm.c | ||
mt8183-da7219-max98357.c | ||
mt8183-dai-adda.c | ||
mt8183-dai-hostless.c | ||
mt8183-dai-i2s.c | ||
mt8183-dai-pcm.c | ||
mt8183-dai-tdm.c | ||
mt8183-interconnection.h | ||
mt8183-mt6358-ts3a227-max98357.c | ||
mt8183-reg.h |