ASoC: Intel: bdw_rt286: Improve probe() function quality
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 20 Jun 2022 10:13:58 +0000 (12:13 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 23 Jun 2022 12:07:41 +0000 (13:07 +0100)
commit9177203c209d9137dce52c7f0bc28e54960e5a41
tree6acf67528f76c99b070cb550d1722ca88e65732c
parent128bb6fb530841348ee4d9b4234b30006c44c803
ASoC: Intel: bdw_rt286: Improve probe() function quality

Declare local 'dev' and make use of it plus dev_get_platdata() to
improve code readability. Relocate few relevant to the function macros
for the exact same read too.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220620101402.2684366-14-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bdw_rt286.c