diff mbox series

i2c-xiic: Fix the type check for xiic_wakeup

Message ID 20220526040914.4159495-1-shubhrajyoti.datta@xilinx.com
State New
Headers show
Series i2c-xiic: Fix the type check for xiic_wakeup | expand

Commit Message

Shubhrajyoti Datta May 26, 2022, 4:09 a.m. UTC
Fix the coverity warning
mixed_enum_type: enumerated type mixed with another type

Enum is passed to xiic_wakeup, change the function parameter
to reflect it.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
---

 drivers/i2c/busses/i2c-xiic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c
index 9a1c3f8b7048..2b6341f08d71 100644
--- a/drivers/i2c/busses/i2c-xiic.c
+++ b/drivers/i2c/busses/i2c-xiic.c
@@ -367,7 +367,7 @@  static void xiic_fill_tx_fifo(struct xiic_i2c *i2c)
 	}
 }
 
-static void xiic_wakeup(struct xiic_i2c *i2c, int code)
+static void xiic_wakeup(struct xiic_i2c *i2c, enum xilinx_i2c_state code)
 {
 	i2c->tx_msg = NULL;
 	i2c->rx_msg = NULL;