summaryrefslogtreecommitdiffstats
path: root/drivers/soundwire/intel_init.c
diff options
context:
space:
mode:
authorDavid E. Box <david.e.box@linux.intel.com>2021-12-22 00:58:50 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-22 13:59:01 +0100
commit3edac08e18961b3f2ac883f1dc209f36deb218be (patch)
tree92590cc66a1f4defb6a1baaee9d9169dc0b9fe0b /drivers/soundwire/intel_init.c
parentRDMA/irdma: Use auxiliary_device driver data helpers (diff)
downloadlinux-3edac08e18961b3f2ac883f1dc209f36deb218be.tar.xz
linux-3edac08e18961b3f2ac883f1dc209f36deb218be.zip
soundwire: intel: Use auxiliary_device driver data helpers
Use auxiliary_get_drvdata and auxiliary_set_drvdata helpers. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: David E. Box <david.e.box@linux.intel.com> Link: https://lore.kernel.org/r/20211221235852.323752-3-david.e.box@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/soundwire/intel_init.c')
-rw-r--r--drivers/soundwire/intel_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soundwire/intel_init.c b/drivers/soundwire/intel_init.c
index e329022e1669..d99807765dfe 100644
--- a/drivers/soundwire/intel_init.c
+++ b/drivers/soundwire/intel_init.c
@@ -244,7 +244,7 @@ static struct sdw_intel_ctx
goto err;
link = &ldev->link_res;
- link->cdns = dev_get_drvdata(&ldev->auxdev.dev);
+ link->cdns = auxiliary_get_drvdata(&ldev->auxdev);
if (!link->cdns) {
dev_err(&adev->dev, "failed to get link->cdns\n");