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
ea68a7142e
commit
b1397508be
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254737
@ -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…
Reference in New Issue
Block a user