summaryrefslogtreecommitdiff
path: root/drivers/soundwire
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2022-01-26 09:16:57 +0800
committerVinod Koul <vkoul@kernel.org>2022-02-11 12:15:36 +0530
commitad027fa2986661708b7bb668d984d499dd5aed89 (patch)
tree955a3d8712e75a06542e3ba2fd33bdfb6e21ce2b /drivers/soundwire
parent8733729e63001942a40710497bfce39e957d10da (diff)
soundwire: stream: remove unused parameter in sdw_stream_add_slave
The stream parameter is not used, remove before further simplifications. 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/20220126011715.28204-2-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r--drivers/soundwire/stream.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/soundwire/stream.c b/drivers/soundwire/stream.c
index 980f26d49b66..a30d0fb4871b 100644
--- a/drivers/soundwire/stream.c
+++ b/drivers/soundwire/stream.c
@@ -968,14 +968,12 @@ stream_config:
*
* @slave: Slave handle
* @stream_config: Stream configuration
- * @stream: Stream runtime handle
*
* This function is to be called with bus_lock held.
*/
static struct sdw_slave_runtime
*sdw_alloc_slave_rt(struct sdw_slave *slave,
- struct sdw_stream_config *stream_config,
- struct sdw_stream_runtime *stream)
+ struct sdw_stream_config *stream_config)
{
struct sdw_slave_runtime *s_rt;
@@ -1367,7 +1365,7 @@ int sdw_stream_add_slave(struct sdw_slave *slave,
goto error;
}
- s_rt = sdw_alloc_slave_rt(slave, stream_config, stream);
+ s_rt = sdw_alloc_slave_rt(slave, stream_config);
if (!s_rt) {
dev_err(&slave->dev,
"Slave runtime config failed for stream:%s\n",