Skip to content

Commit 020cae4

Browse files
smalaefabiobaltieri
authored andcommitted
drivers: dma: siwx917: siwx917_channel_config prototype change
Remove chan_info as input argument for siwx917_channel_config() Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
1 parent b9f5010 commit 020cae4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/dma/dma_silabs_siwx91x.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ static int siwx91x_addr_adjustment(uint32_t adjustment)
9999
}
100100

101101
static int siwx91x_channel_config(const struct device *dev, RSI_UDMA_HANDLE_T udma_handle,
102-
uint32_t channel, const struct dma_config *config,
103-
UDMA_Channel_Info *channel_info)
102+
uint32_t channel, const struct dma_config *config)
104103
{
105104
uint32_t dma_transfer_num = config->head_block->block_size / config->source_data_size;
106105
const struct dma_siwx91x_config *cfg = dev->config;
106+
struct dma_siwx91x_data *data = dev->data;
107107
UDMA_RESOURCES udma_resources = {
108108
.reg = cfg->reg,
109109
.udma_irq_num = cfg->irq_number,
@@ -172,7 +172,7 @@ static int siwx91x_channel_config(const struct device *dev, RSI_UDMA_HANDLE_T ud
172172
config->head_block->source_address,
173173
config->head_block->dest_address,
174174
dma_transfer_num, channel_control,
175-
&channel_config, NULL, channel_info,
175+
&channel_config, NULL, data->chan_info,
176176
udma_handle);
177177
if (status) {
178178
return -EIO;
@@ -206,7 +206,7 @@ static int siwx91x_dma_configure(const struct device *dev, uint32_t channel,
206206
}
207207

208208
/* Configure dma channel for transfer */
209-
status = siwx91x_channel_config(dev, udma_handle, channel, config, data->chan_info);
209+
status = siwx91x_channel_config(dev, udma_handle, channel, config);
210210
if (status) {
211211
return status;
212212
}

0 commit comments

Comments
 (0)