drivers: charger: fix i2c_dump_msgs_rw argument
Fixes: zephyr/drivers/charger/emul_sbs_charger.c:70:26: warning: passing argument 1 of ‘i2c_dump_msgs_rw’ from incompatible pointer type [-Wincompatible-pointer-types] Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
2c8dbc4e8b
commit
c03d0f83c8
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ static int sbs_charger_emul_transfer_i2c(const struct emul *target, struct i2c_m
|
|||
|
||||
data = target->data;
|
||||
|
||||
i2c_dump_msgs_rw("emul", msgs, num_msgs, addr, false);
|
||||
i2c_dump_msgs_rw(target->dev, msgs, num_msgs, addr, false);
|
||||
switch (num_msgs) {
|
||||
case 2:
|
||||
if (msgs->flags & I2C_MSG_READ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue