]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: Intel: cht_bsw_rt5672: Simplify probe() with local 'dev' pointer
authorSachin Mokashi <sachin.mokashi@intel.com>
Mon, 27 Apr 2026 14:46:19 +0000 (10:46 -0400)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2026 22:44:28 +0000 (07:44 +0900)
commitcda1cf0526f1544e67283c019c3654c831cefc6c
treeb4f193bb7ab78c94251c0889164ed0a68bc4e205
parentf4d00860e4a70aede0fb95173a5dc12bc89d7ee3
ASoC: Intel: cht_bsw_rt5672: Simplify probe() with local 'dev' pointer

In snd_cht_mc_probe(), &pdev->dev is dereferenced repeatedly throughout
the function. Introduce a local dev pointer
early in the function and use it consistently in place of all open-coded
&pdev->dev references.

It reduces repetition, improves readability, and aligns with the common
kernel driver pattern of caching the device pointer at function entry.

Signed-off-by: Sachin Mokashi <sachin.mokashi@intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20260427144619.1739971-1-sachin.mokashi@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_rt5672.c