Skip to content

Commit d7e7839

Browse files
asemjonovsdanieldegrasse
authored andcommitted
i2c: npcx_i2c_ctrl_transfer does not match original declaration
Fix npcx_i2c_ctrl_transfer arguments to match header to prevent warning: type of 'npcx_i2c_ctrl_transfer' does not match original declaration Signed-off-by: Al Semjonovs <asemjonovs@google.com>
1 parent c3aa658 commit d7e7839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/i2c_npcx_controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ static void i2c_target_wk_isr(const struct device *dev, struct npcx_wui *wui)
14141414
#endif /* CONFIG_I2C_TARGET */
14151415

14161416
int npcx_i2c_ctrl_transfer(const struct device *i2c_dev, struct i2c_msg *msgs,
1417-
uint8_t num_msgs, uint16_t addr, int port)
1417+
uint8_t num_msgs, uint16_t addr, uint8_t port)
14181418
{
14191419
struct i2c_ctrl_data *const data = i2c_dev->data;
14201420
int ret = 0;

0 commit comments

Comments
 (0)