projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b81bcdb
)
soundwire: intel: simplify read ops assignment
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Mon, 19 Sep 2022 17:57:18 +0000
(
01:57
+0800)
committer
Vinod Koul
<vkoul@kernel.org>
Tue, 20 Sep 2022 05:09:23 +0000
(10:39 +0530)
We can assign the right callback directly in the ops structure. No
functionality change.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link:
https://lore.kernel.org/r/20220919175721.354679-9-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c
patch
|
blob
|
history
diff --git
a/drivers/soundwire/intel.c
b/drivers/soundwire/intel.c
index 4eeb2b5c1594204a91ccfe6d79173477bb4c1ce0..66aab02b93233abecff2541e9305e42a1653c2d2 100644
(file)
--- a/
drivers/soundwire/intel.c
+++ b/
drivers/soundwire/intel.c
@@
-1261,7
+1261,7
@@
static int intel_prop_read(struct sdw_bus *bus)
}
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,
.xfer_msg = cdns_xfer_msg,
.xfer_msg_defer = cdns_xfer_msg_defer,
@@
-1304,8
+1304,7
@@
static int intel_link_probe(struct auxiliary_device *auxdev,
sdw_cdns_probe(cdns);
- /* Set property read ops */
- sdw_intel_ops.read_prop = intel_prop_read;
+ /* Set ops */
bus->ops = &sdw_intel_ops;
/* set driver data, accessed by snd_soc_dai_get_drvdata() */