diff options
| author | Sachin Mokashi <sachin.mokashi@intel.com> | 2026-04-27 17:46:19 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-04-28 01:44:28 +0300 |
| commit | cda1cf0526f1544e67283c019c3654c831cefc6c (patch) | |
| tree | b4f193bb7ab78c94251c0889164ed0a68bc4e205 /include/linux | |
| parent | f4d00860e4a70aede0fb95173a5dc12bc89d7ee3 (diff) | |
| download | linux-cda1cf0526f1544e67283c019c3654c831cefc6c.tar.xz | |
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
