Return EIO iso -1, the kiic_transfer has an signed return.
Submitted by: Luiz Otavio O Souza <loos.br AT gmail.com>
This commit is contained in:
parent
debdf2d1b8
commit
34eaccd1dc
@ -420,7 +420,7 @@ kiic_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs)
|
||||
device_printf(sc->sc_dev, "I2C error\n");
|
||||
sc->sc_flags = 0;
|
||||
mtx_unlock(&sc->sc_mutex);
|
||||
return (-1);
|
||||
return (EIO);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user