This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new b872f727e bus/spi_da1469x: Fix broken build
b872f727e is described below

commit b872f727e870f26d46be5620b9d922876c368dd7
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Tue Jul 22 09:46:05 2025 +0200

    bus/spi_da1469x: Fix broken build
    
    Variable name was incorrect resulting in build error
---
 hw/bus/drivers/spi_da1469x/src/spi_da1469x.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/hw/bus/drivers/spi_da1469x/src/spi_da1469x.c 
b/hw/bus/drivers/spi_da1469x/src/spi_da1469x.c
index 12e90e0f0..2b6217182 100644
--- a/hw/bus/drivers/spi_da1469x/src/spi_da1469x.c
+++ b/hw/bus/drivers/spi_da1469x/src/spi_da1469x.c
@@ -452,15 +452,15 @@ spi_da1469x_configure(struct bus_dev *bdev, struct 
bus_node *bnode)
         regs->SPI_CTRL_REG = ctrl_reg ^ (SPI_SPI_CTRL_REG_SPI_ON_Msk);
     }
 
-    if ((spi_dev->mode == node->mode) && (spi_dev->data_order == 
node->data_order) &&
-        (spi_dev->freq == node->freq)) {
+    if ((dev->mode == node->mode) && (dev->data_order == node->data_order) &&
+        (dev->freq == node->freq)) {
         /* Same configuration, no changes required. */
         goto end;
     }
 
-    spi_dev->freq = node->freq;
-    spi_dev->data_order = node->data_order;
-    spi_dev->mode = node->mode;
+    dev->freq = node->freq;
+    dev->data_order = node->data_order;
+    dev->mode = node->mode;
 
     ctrl_reg &= ~(SPI_SPI_CTRL_REG_SPI_TX_FIFO_NOTFULL_MASK_Msk |
                   SPI_SPI_CTRL_REG_SPI_DMA_TXREQ_MODE_Msk |

Reply via email to