Commit 0b59d4c9 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Vinod Koul

soundwire: intel: simplify read ops assignment

We can assign the right callback directly in the ops structure. No
functionality change.
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: default avatarRander Wang <rander.wang@intel.com>
Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220919175721.354679-9-yung-chuan.liao@linux.intel.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent b81bcdb4
...@@ -1261,7 +1261,7 @@ static int intel_prop_read(struct sdw_bus *bus) ...@@ -1261,7 +1261,7 @@ static int intel_prop_read(struct sdw_bus *bus)
} }
static struct sdw_master_ops sdw_intel_ops = { static struct sdw_master_ops sdw_intel_ops = {
.read_prop = sdw_master_read_prop, .read_prop = intel_prop_read,
.override_adr = sdw_dmi_override_adr, .override_adr = sdw_dmi_override_adr,
.xfer_msg = cdns_xfer_msg, .xfer_msg = cdns_xfer_msg,
.xfer_msg_defer = cdns_xfer_msg_defer, .xfer_msg_defer = cdns_xfer_msg_defer,
...@@ -1304,8 +1304,7 @@ static int intel_link_probe(struct auxiliary_device *auxdev, ...@@ -1304,8 +1304,7 @@ static int intel_link_probe(struct auxiliary_device *auxdev,
sdw_cdns_probe(cdns); sdw_cdns_probe(cdns);
/* Set property read ops */ /* Set ops */
sdw_intel_ops.read_prop = intel_prop_read;
bus->ops = &sdw_intel_ops; bus->ops = &sdw_intel_ops;
/* set driver data, accessed by snd_soc_dai_get_drvdata() */ /* set driver data, accessed by snd_soc_dai_get_drvdata() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment