]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: intel: clarify drvdata and remove more indirections
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Sun, 31 May 2020 18:20:58 +0000 (02:20 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 22 Jun 2020 11:51:36 +0000 (17:21 +0530)
commit436d78a045c650d968885c6026c4a8c9cd5536ca
treeed0747933f303c37b54f438544b1ab128bc6474d
parent497e036db54719587fba0fac1f44da077f2bdf60
soundwire: intel: clarify drvdata and remove more indirections

The use of drvdata mixes two structures. There was no harm the first
structure is embedded as the first element of the second, but that's
not good. Make sure all drvdata is based on the 'sdw_cdns' structure.

While we are at it, remove indirections for 'dev' and 'cdns' to make
the code more readable.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200531182102.27840-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c