You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/08/20 08:37:38 UTC

[incubator-nuttx] branch master updated: rp2040: Add missing comma in rp2040_i2c_slave.c

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

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new bd584332a4 rp2040: Add missing comma in rp2040_i2c_slave.c
bd584332a4 is described below

commit bd584332a4aef93f381307248f88e2fd154bf1c2
Author: Masanari Iida <st...@gmail.com>
AuthorDate: Sat Aug 20 16:06:19 2022 +0900

    rp2040: Add missing comma in rp2040_i2c_slave.c
    
    This patch fixes missing comma, found by cppcheck.
    
    rp2040_i2c_slave.c:259:0: error: failed to expand 'modbits_reg32',
     Wrong number of parameters for macro 'modbits_reg32'.
    
    Signed-off-by: Masanari Iida <st...@gmail.com>
---
 arch/arm/src/rp2040/rp2040_i2c_slave.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/rp2040/rp2040_i2c_slave.c b/arch/arm/src/rp2040/rp2040_i2c_slave.c
index b64fee3b6f..4f9d98360e 100644
--- a/arch/arm/src/rp2040/rp2040_i2c_slave.c
+++ b/arch/arm/src/rp2040/rp2040_i2c_slave.c
@@ -257,7 +257,7 @@ static int i2c_interrupt(int irq, void *context, void *arg)
        */
 
       modbits_reg32(RP2040_I2C_IC_INTR_MASK(priv->controller),
-                    0
+                    0,
                     RP2040_I2C_IC_INTR_MASK_M_TX_EMPTY);
     }