]> 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)
commit835d7603f77511213c0ef71e633d08624a9d32ca
treeed0747933f303c37b54f438544b1ab128bc6474d
parent4922149f1405b51906e815bf62638f948f067e79
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