mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
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>
This commit is contained in:
parent
f4d00860e4
commit
cda1cf0526
1 changed files with 9 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue