@@ -44,7 +44,7 @@ struct dma_siwx91x_data {
4444 UDMA_Channel_Info * chan_info ;
4545 dma_callback_t dma_callback ; /* User callback */
4646 void * cb_data ; /* User callback data */
47- RSI_UDMA_DATACONTEXT_T dma_rom_buff ; /* Buffer to store UDMA handle
47+ RSI_UDMA_DATACONTEXT_T udma_handle ; /* Buffer to store UDMA handle
4848 * related information
4949 */
5050};
@@ -187,7 +187,7 @@ static int siwx91x_dma_configure(const struct device *dev, uint32_t channel,
187187{
188188 const struct dma_siwx91x_config * cfg = dev -> config ;
189189 struct dma_siwx91x_data * data = dev -> data ;
190- void * udma_handle = & data -> dma_rom_buff ;
190+ void * udma_handle = & data -> udma_handle ;
191191 int status ;
192192
193193 /* Expecting a fixed channel number between 0-31 for dma0 and 0-11 for ulpdma */
@@ -223,7 +223,7 @@ static int siwx91x_dma_reload(const struct device *dev, uint32_t channel, uint32
223223{
224224 const struct dma_siwx91x_config * cfg = dev -> config ;
225225 struct dma_siwx91x_data * data = dev -> data ;
226- void * udma_handle = & data -> dma_rom_buff ;
226+ void * udma_handle = & data -> udma_handle ;
227227 uint32_t desc_src_addr ;
228228 uint32_t desc_dst_addr ;
229229 uint32_t length ;
@@ -278,7 +278,7 @@ static int siwx91x_dma_start(const struct device *dev, uint32_t channel)
278278 const struct dma_siwx91x_config * cfg = dev -> config ;
279279 RSI_UDMA_DESC_T * udma_table = cfg -> sram_desc_addr ;
280280 struct dma_siwx91x_data * data = dev -> data ;
281- void * udma_handle = & data -> dma_rom_buff ;
281+ void * udma_handle = & data -> udma_handle ;
282282
283283 /* Expecting a fixed channel number between 0-31 for dma0 and 0-11 for ulpdma */
284284 if (channel >= cfg -> channels ) {
@@ -304,7 +304,7 @@ static int siwx91x_dma_stop(const struct device *dev, uint32_t channel)
304304{
305305 const struct dma_siwx91x_config * cfg = dev -> config ;
306306 struct dma_siwx91x_data * data = dev -> data ;
307- void * udma_handle = & data -> dma_rom_buff ;
307+ void * udma_handle = & data -> udma_handle ;
308308
309309 /* Expecting a fixed channel number between 0-31 for dma0 and 0-11 for ulpdma */
310310 if (channel >= cfg -> channels ) {
@@ -364,8 +364,8 @@ static int siwx91x_dma_init(const struct device *dev)
364364 }
365365
366366 udma_handle = UDMAx_Initialize (& udma_resources , udma_resources .desc , NULL ,
367- (uint32_t * )& data -> dma_rom_buff );
368- if (udma_handle != & data -> dma_rom_buff ) {
367+ (uint32_t * )& data -> udma_handle );
368+ if (udma_handle != & data -> udma_handle ) {
369369 return - EINVAL ;
370370 }
371371
0 commit comments