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)
commit83e129afbe5c4a444c034e981b0f8535889380fe
treeed0747933f303c37b54f438544b1ab128bc6474d
parentb6109dd6dc9fbc5dfae1106972d728eba0afd098
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