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>
This commit is contained in:
Al Semjonovs 2025-06-04 08:57:46 -06:00 committed by Daniel DeGrasse
commit d7e7839244

View file

@ -1414,7 +1414,7 @@ static void i2c_target_wk_isr(const struct device *dev, struct npcx_wui *wui)
#endif /* CONFIG_I2C_TARGET */
int npcx_i2c_ctrl_transfer(const struct device *i2c_dev, struct i2c_msg *msgs,
uint8_t num_msgs, uint16_t addr, int port)
uint8_t num_msgs, uint16_t addr, uint8_t port)
{
struct i2c_ctrl_data *const data = i2c_dev->data;
int ret = 0;